[SailfishDevel] Front camera access
Billy Pitiot
billy at aito-touch.com
Tue Feb 10 12:18:24 UTC 2015
Hi, sorry not to asnwer earlier, I got some higher priority task to deal
with first.
Thanks to all those who answered, it helped me understand.
> > Hi all,
> > I am currently trying to access the front camera of the Jolla phone. I
> > managed to get a VideoOutput to display the rear camera using import
> > QtMultimedia 5.0 but I do not understand how to change to the front
> > camera.
>
> You cannot do that from QML. You need to have some C++ glue for that.
>
> You create a C++ class inheriting QObject which gets passed
> Camera::mediaObject from QML
>
> >From that mediaObject, get QMediaService:
> http://doc.qt.io/qt-5/qmediaobject.html#service
>
> Then request QVideoDeviceSelectorControl control. Use that to switch the
> devixe.
>
Thanks a lot for your answer Mohammed Hassan. I got to try that today and
it works perfectly. That's exactly what I needed.
Thanks again,
Billy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150210/f283d4b2/attachment.html>
More information about the Devel
mailing list