こんにちは、私はすでにフラッシュ as3 を使用して Web アプリケーション用のカメラ アプリケーションを作成しています。それは正常に動作し、Camera.getCamera(); のカメラ クラスを使用します。そして今、私はこれと同じアプリケーションを Android 用に作成したいと考えています。前面カメラのみを備えたAndroidデバイスを持っています。したがって、デバイスで実行したのと同じアプリケーションです。カメラの表示が見えません。デバイスの前面カメラにアクセスするために使用できるオプションはありますか?
1590 次
2 に答える
1
ドキュメントを使用してください!Camera.getCamera() の説明には次のように記載されています。
Parameters
name:String (default = null) — Specifies which camera to get, as determined from the array returned by the names property. For most applications, get the default camera by omitting this parameter. To specify a value for this parameter, use the string representation of the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use Camera.getCamera("2").
したがって、2番目のカメラが必要な場合は、
Camera.getCamera("1")
于 2013-01-07T12:26:09.200 に答える
0
カメラ インデックスは、バック カメラまたはフロント カメラを定義する番号です。最初のインデックスが背面カメラで、2 番目の項目が前面カメラである場合もあれば、その逆の場合もあります。
私が推測すると、あなたはCamera クラスを使用していると思います..このブログの投稿で詳細を確認できます
これがあなたを助けるかもしれません..!
于 2013-01-07T08:57:08.887 に答える