Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

access html 5 camera flash

I want to acces phones camera flash(flashlight) automatic. like this app : https://www.youtube.com/watch?v=W_Lr3d9giCo

We can access camera with this html 5 controller

<input type="file" accept="image/*;capture=camera">

But how can we access camera's flash(flashlight)?is there any html(5) or javascript(jquery or other framework) plugin for this? I want to acces camera's flash with browser technologies(html 5,javascript,css)

like image 659
user1688401 Avatar asked Mar 13 '15 23:03

user1688401


Video Answer


1 Answers

no, There is no attribute in HTML5 to access flashlight.

if you are using Cordova/phonegap/Ionic to package your HTML app you can use the following plugin to access the flashlight

https://www.npmjs.com/package/cordova-plugin-flashlight

installation and usage guide is given in above link.

like image 159
Arpit Vasani Avatar answered Nov 18 '22 06:11

Arpit Vasani