Welcome!

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

Native Development

Reply
Regular Contributor
Posts: 55
Registered: ‎03-14-2012
My Device: RDJ21WW
My Carrier: none

Camera Video Capture in blackberry 10 dev alpha

Hello,,

Is there any sample code for video capture in dev alpha bb10?

If anybody knows please share the code and link

 

Thanks

 

 

Retired
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: Camera Video Capture in blackberry 10 dev alpha

Hey there,

 

have you looking at this post? It may point you in the correct direction:

http://supportforums.blackberry.com/t5/Native-Development/Camera-Sample-Code/td-p/1744325

 

Martin

Regular Contributor
Posts: 55
Registered: ‎03-14-2012
My Device: RDJ21WW
My Carrier: none

Re: Camera Video Capture in blackberry 10 dev alpha

Thanks for you reply..But the Native_camera Sample code used to take photos..I need for video...ie..camera_start_video()

BlackBerry Development Advisor
Posts: 668
Registered: ‎11-29-2011
My Device: developer
My Carrier: other

Re: Camera Video Capture in blackberry 10 dev alpha

[ Edited ]

I don't have a sample written for this, however the changes would be minor:

 

Instead of camera_set_photovf_property(), use camera_set_videovf_property().

Instead of camera_start_photo_viewfinder(), use camera_start_video_viewfinder().

Instead of calling camera_take_photo() when the screen is tapped, call camera_start_video() with NULL for all callbacks.

 

You will need to sort out a filename for the video recording - use camera_roll_open_video().

 

To stop video recording, call camera_stop_video() and then camera_roll_close_video();

 

I leave the state machine changes as an exercise for you to sort out.  I will add this to my rainy-day list of samples to write.

 

Cheers,

Sean