Flashlight-PhoneGap-Plugin icon indicating copy to clipboard operation
Flashlight-PhoneGap-Plugin copied to clipboard

Possibility of strobe effect?

Open rebrandsoftware opened this issue 8 years ago • 2 comments

I am trying to use the app on Android to create a strobe effect. The problem is that I can't get the light to turn on and off faster than about once per second. Any faster and the on/off states queue up and keep going at a rate of about 1 per second after I "stop" the process by killing the javascript timeout.

I can't be sure if this is related to the plugin, the hardware, or a javascript limitation. Any thoughts?

rebrandsoftware avatar Dec 08 '16 20:12 rebrandsoftware

I think it's all the overhead of getting the camera and releasing it each time. I'm working on a modification that lets you do the overhead before and after, just switching the light on and off between.

rebrandsoftware avatar Dec 09 '16 16:12 rebrandsoftware

Did you find a solution to this?

ryanbitninja avatar Sep 05 '17 12:09 ryanbitninja