Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Android Front Facing Camera by defaultで解決策を試しましたが、それでも背面カメラを使用しています。誰かが前面カメラを取得するための完全なコードを提供できますか?
cameraDirection プロパティは、カメラの方向 (前面/背面) を設定するために使用されます。次のようにオプションに追加する必要があります。
navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50, cameraDirection:1, destinationType: destinationType.DATA_URL}); }
「1」は前面カメラに使用され、「2」は背面カメラに使用されます。