-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accessing the device torch || flash light #39
Comments
Did you manage to add a flashlight? Is this code from codeopen working with current library? |
Hi, i just got your message now... The project i was working on at the time was commissioned as a PWA with QRcode scanning capabilities. The PWA or javascript qrscanner was a milliseconds to slow for the clients and then they requested to rather have the application changed to a hybrid apps. I then used cordova and in that i go the flash light working for sure.. Let me go through the source code of the pwa and check for you quickly |
Hi markaw375, no i didn't complete the torch functionality for this, actually what happened was that for ios, when i created the PWA, the getusermedia stopped working and so i used the INPUT type FILE with capture which calls the device default Camera and this had the flashlight in it.. But then the project was scrapped for the Hybrid app. Hope this helps.. |
Okay. Thank you for the quick reply. |
Is it possible to turn on the device flash light?
i followed this link:
https://codepen.io/adamrifai/pen/YLxjKa
and tested it, it turns on the flash light, but the flash light is attached to the camera event.. Is it possible to have this function added?
Greets.
The text was updated successfully, but these errors were encountered: