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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Contributor
richard7854
Posts: 29
Registered: ‎03-03-2011
My Carrier: 02

Cannot access camera in AIR

Hello

 

i am using Adobe AIR and Blackberry Playbook(1.0.6.2390) and i am trying to use camera. When i test it on desktop, everythings runs fine and i can see camera stream. But as soon as i run it on PB, i dont see anything. When i list available cameras, i can see two cameras, named "0" and "1", but still cant get any video stream from them. Code looks like this : 

 

cam = Camera.getCamera()

video = new Video(320,240)

video.attachCamera(cam)

addChild(video)

 

Also...is there any way, to get picture from camera, not video stream ? I  mean full 5 MPix pictures.

 

Thanks

 

Richard

Please use plain text.
BlackBerry Development Advisor
elena_laskavaia
Posts: 410
Registered: ‎10-27-2010

Re: Cannot access camera in AIR

Did you declare use_camera action?

Please use plain text.
Contributor
richard7854
Posts: 29
Registered: ‎03-03-2011
My Carrier: 02

Re: Cannot access camera in AIR

ehm..no :smileyvery-happy: thank you very much !

Please use plain text.
Contributor
richard7854
Posts: 29
Registered: ‎03-03-2011
My Carrier: 02

Re: Cannot access camera in AIR

But second  question still remains...is it possible to capture images using camera ? I mean capture full 5Mpix images, such as in Camera application, not video screenshots.

Please use plain text.