how to turn on camera flash light or torch light using qml?

563
2
10-06-2020 04:10 AM
x_d
by
New Contributor III
So i am working on a mobile app and i need to apply the touch feature on my app,How Can I turn on camera flash light or torch light on Button click using qml ? Is there any way to do this? 
Tags (2)
0 Kudos
2 Replies
ErwinSoekianto
Esri Regular Contributor

Hello, 

Do you need to turn on the torch by itself or turn on the flash while opening the camera?

If you are looking for turning on the flash while opening the camera, we have the sample that's called Camera Dialog, that would allow you to adjust the setting of the flash while taking picture or video. 

But if you are looking to turn on/off the torch by itself, Qt has a Torch QML type that is supposed to do this, but it does not seem to work on my testing, and also based on the bug report, [QTBUG-79274] iOS Torch does not work, quirk with getting it working - Qt Bug Tracker 

Erwin

0 Kudos
x_d
by
New Contributor III

I have also tried this https://doc.qt.io/qt-5/qml-qtmultimedia-torch.html but did not work for me as well

0 Kudos