05-18-2013 07:41 AM
Hi I am trying to create a flash light app. I am trying this with Camera Libraray. But I can't seem to make the flash light linger after the photo is taken. It turns off right after the photo is taken.I used this command
to force the light flash everytime the picture is taken. Do I need to try to this while capturing a video instead? But I also can't seem to start video.
err = camera_start_video(handle,"/accounts/1000/appdata/
com.example.Camera.testDev_ple_Camerab032c86f/data /video", NULL,NULL,NULL);
the `err` variable returns an error value of 2. This problem is giving me a headache. I really need help to fix this as soon as I can. Thanks.
Solved! Go to Solution.
05-18-2013 02:51 PM
05-18-2013 09:07 PM
Not entirely sure if you can keep the camera flash light on by using Native Development (non-Cascades). The API available doesn't seem to allow you to do that for Native.
For the video capture, did you call the camera_start_video_viewfinder() function before camera_start_video() ?
05-21-2013 01:37 PM
The API is definitely available. The C API is what all the other frameworks are built on top of.
That plus camera_open(); are the only 2 functions you need to use to drive the led.
Just be aware that when the screen turns off, so will the LED, since the camera hardware is associated with the same power circuit. This is a limitation we are working to address in a future release.