How to access secondary camera device using QML camera element ?
-
Hi,
I am trying to use QML camera element for taking pictures and directly using it in the application. I want to provide an option to the user to choose between the primary and secondary camera devices of the phone.
By default the primary camera device is accessed by the QML camera element and there is no way to specify the secondary camera if the device has any.
However on core side it is possible to get all the available camera devices using QCamera::availableDevices() API and the desired camera device can be set via constructor of QCamera class.
How to do it in QML ?
Any help on this is much appreciated. -
You can't do it. one way if you create own qml item.
-
I'd like that as well.
-
I know this is an old thread but perhaps someone might find this information useful.
See this entry on xmlich02's implementation of a front camera class on Nokia Developer: https://www.developer.nokia.com/Community/Wiki/Secondary_camera_in_QML. -
I've got a solution to that on the mailing list. It's working for me.
http://lists.qt-project.org/pipermail/interest/2014-January/010475.html -
And official support for this is planned for Qt 5.3.
-
Qt 5.3 is out ... but I can't find a way to select the front camera.
How can I do that ? -
Conny's post has an answer that should work. I know nothing about offficial support.
[quote author="conny" date="1389340978"]I've got a solution to that on the mailing list. It's working for me.
http://lists.qt-project.org/pipermail/interest/2014-January/010475.html
[/quote] -
[quote author="sierdzio" date="1389343910"]And official support for this is planned for Qt 5.3.[/quote]
@sierdzio : do you know if the support has been added or not ? Where did you get the information about the addition of official support in Qt 5.3 ?
-
I follow the Qt development mailing list, that is where I've got the information. I do not know whether this change was really merged into the release.