08-27-2012 12:00 PM
As we know, when we use playbook to take video, we must press the record button on the screen.
I am developing an app that monitor the acceleration of the playbook then take video automatically, but at the moment I cannot make the camera work by itself, it has to be continued working by user pressing the record button on the screen...
I wonder if there are any ways to make the camera take video automatically through the code in my app, not the action of the user?
Solved! Go to Solution.
08-29-2012 02:25 PM
08-30-2012 02:05 AM
Yes, you can. Here is the code sample to show how to do it.
False, you can not without an extension for now. What you linked, as one can read in the documentation of this API functionality, it will open up the photo/video application and user needs to make a photo/video by themself and in to the app it will provide the filepath where the taken photo/video was stored.
So this isn't automaticaly, isn't it. In HTML5, what you might want to do is using the getUserMedia functionality when it will be ready in BB10 in the future. For now you would need to have an extension for such behaviour, as far as I know, to use the video from cam inline in your app.