Best way to select secondary camera.

asked 2016-12-11 11:29:29 +0200

Newbie gravatar image

Hi All,
Currently am playing with cameras in QtMultimedia module. I couldn't find a way to select the front/secondary camera. I think its not available in Qt 5.5 but in Qt 5. 7 it is provided. What is the best way to select front camera. Currently am learning Qml and has no experience in Qt C++ part.

Thanks in advance.

edit retag flag offensive close delete

Comments

1

Did you ever tried it before asking? Camera have deviceId property you can use from QML. Id can be "primary" or "secondary"

coderus ( 2016-12-11 12:06:57 +0200 )edit

@coderus. Sorry for late reply, I was on vacation. Yes I tried deviceId property, but ide showed red squigly line like error so I left it. After seeing this I tried deploying, all it says is "Camera.deivceId" is not available in QtMultimedia 5.0, 5.1, 5.2 and 5.3. It seems this property is available in QtMultimedia 5.4 but RPM validator says QtMultimedia 5.4 is not allowed as am considering to release in harbour when I finish. When SailfishOS will support these?

Newbie ( 2016-12-21 18:34:29 +0200 )edit

I even tried updating the SDK, RPM validator still doesn't pass the Application. Cant I use secondary camera using QtMultimedia 5.0

Newbie ( 2016-12-21 18:58:23 +0200 )edit