0

We are implementing a javascript library that uses the camera of the device on mobile web browsers. It was working well on Android using Chrome and some versions of the default Browser app. Since iOS 11 and Safari 11, we are able to access the camera on iOS too.

I was wondering if we can use this API to turn on the LED flashlight of the device. And in what platforms and browsers would that work.

martin
  • 247
  • 3
  • 15
  • I don't know why you think one has anything to do with the other… AFAIK no such API exists. – deceze Nov 24 '17 at 10:06
  • Both on Android and iOS SDKs allow access yo the flash light through the camera API. I was just guessing it could be the same for webrtc. – martin Nov 24 '17 at 11:57
  • 1
    you can use flashlight as described in this reponse

    check this [#37848494](https://stackoverflow.com/questions/37848494/is-it-possible-to-control-the-camera-light-on-a-phone-via-a-website)

    – Ahmed Mihoub Mar 29 '18 at 13:59

0 Answers0