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

Posts: 16
Registered: ‎08-14-2012
My Device: blackberry 10 dev alpha
My Carrier: China unicom

[help]How to Zoom in or out using Native Camera api?

[ Edited ]


I have some questions you all may face before, Please help me figure out :


1.how to adjust the length of video camera in ndk?when i use the function from camera-api named

"camera_set_videovf_property" and change the parameter "CAMERA_IMGPROP_ZOOMFACTOR" or

"CAMERA_IMGPROP_WIDTH",what is not effective. the error number is 22 and means that the function have invalid argument.


2.if the bool type need some head files? When I write your code in my application and build it, the sdk said that

“../src/StartRecording.hpp:65:15: error: ISO C++ forbids initialization of member 'value' [-fpermissive]

../src/StartRecording.hpp:65:15: error: making 'value' static [-fpermissive]

../src/StartRecording.hpp:65:15: error: ISO C++ forbids in-class initialization of non-const static member 'value'”.


How can I figure out this problem?

Posts: 155
Registered: ‎07-16-2012
My Device: Dev Alpha
My Carrier: Bell

Re: [help]How to Zoom in or out using Native Camera api?

BlackBerry Development Advisor
Posts: 683
Registered: ‎11-29-2011
My Device: PRIV
My Carrier: Rogers

Re: [help]How to Zoom in or out using Native Camera api?