Skip to content
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

Open
antonyf opened this issue Apr 6, 2022 · 4 comments
Open

accessing the device torch || flash light #39

antonyf opened this issue Apr 6, 2022 · 4 comments

Comments

@antonyf
Copy link

antonyf commented Apr 6, 2022

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.

@markaw375
Copy link

Did you manage to add a flashlight? Is this code from codeopen working with current library?

@antonyf
Copy link
Author

antonyf commented Apr 7, 2023

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

@antonyf
Copy link
Author

antonyf commented Apr 7, 2023

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..

@markaw375
Copy link

Okay. Thank you for the quick reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants