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
Highlighted
Regular Contributor
Posts: 76
Registered: ‎07-31-2012
My Device: Blackberry
My Carrier: Vodafone

How to change orientation of camera view?

[ Edited ]

I am developing an application in BB 10. When I fix the orientation of the application to lanscape, the camera view doesn't change its orientation & works in portrait mode. Is there any way to manually switch orientaion of camera view? Note that I have fixed the orientation of the application in bar-descriptor.

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

Re: How to change orientation of camera view?

There is no published sample describing this yet.

 

I suggest you read this thread as a start:

http://supportforums.blackberry.com/t5/Native-Development/What-are-the-proper-steps-to-rotate-camera...

 

And read the camera documentation:

https://developer.blackberry.com/native/beta/reference/com.qnx.doc.camera.lib_ref/topic/overview.htm...

There is some reasonable explanation in the camera_get_native_orientation() section.  I will provide more detail when time permits.

 

Cheers,

Sean