unable to select BackFace camera on Surface Pro 4
Unsolved
QML and Qt Quick
-
Hi, I have a simple camera test app with a button to flip the camera from from the front facing camera to the back facing camera, but this does not work on a Surface Pro 4. It works on an iPhone 6. There are definitely 2 cameras available when I check QtMultimedia.availableCameras. Is this a known bug or is there something wrong with the following code? Thanks.
Camera {
id: camera
captureMode: Camera.CaptureStillImage
position: Camera.UnspecifiedPositionfunction flipCamera() { if (camera.cameraState !== Camera.ActiveState) return; camera.position = (camera.position === Camera.FrontFace ? Camera.BackFace : Camera.FrontFace); } }
-
Hi and welcome to devnet,
Are you using one of the Qt for Windows package or for WinRT ?
-
Then you will more likely have two items it in the list of available cameras.