Flashlight-PhoneGap-Plugin
Flashlight-PhoneGap-Plugin copied to clipboard
Possibility of strobe effect?
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?
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.
Did you find a solution to this?