Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Developer
Posts: 6
Registered: ‎05-09-2012
My Device: Blackberry 9800
My Carrier: Rogers

Controlling Camera in WebWorks

Is there a way to take automatic video via the blackberry.media.camera.takeVideo(); api function?


The app in development requires to take automatic video without user input (but obviously with user consent Smiley Tongue ). 

BlackBerry Development Advisor
Posts: 769
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Controlling Camera in WebWorks

I believe the user would have to press record still.

New Contributor
Posts: 3
Registered: ‎08-27-2012
My Device: Playbook
My Carrier: Unicom

Re: Controlling Camera in WebWorks

Excuse me!

Have you attained the function that take video automatically via the blackberry.media.camera.takeVideo(); api function?

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...

Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Controlling Camera in WebWorks

[ Edited ]



There was another post about it. To use the camera inline to take pictures or make a video you can write an extension to do so or wait until BB10 is out for the PlayBook. For now there is only the way to use the API functionality explained for the blackberry.media.camera to open the camera app, take a picture or video and get back the local path in your app where it was stored on the device.


You could also have a closer look at the WebWorks Community APIs. I haven't tried it yet, but maybe the Barcode API extension has some interesting source code to use the camera inline your app? Have a closer look to the Air files source code around this line 124 it invokes the CameraUI.

"Like" if you liked the post.
"Accept as Solution" if the post solves your question.