unable to select BackFace camera on Surface Pro 4



  • 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.UnspecifiedPosition

        function flipCamera() {
            if (camera.cameraState !== Camera.ActiveState)
                return;
            
            camera.position = (camera.position === Camera.FrontFace ? Camera.BackFace : Camera.FrontFace);
        }
    }

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Are you using one of the Qt for Windows package or for WinRT ?



  • Hi, it's for Window 10 Enterprise edition, running on a Surface Pro 4


  • Lifetime Qt Champion

    Then you will more likely have two items it in the list of available cameras.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.