07-06-2012 09:20 AM
I am trying to port my playbook air app to the BB10 sdk. It seems rather easy. But I have a problem accessing the camera. I wonder if it is a bug or a missing feature of the current beta.
The way I acces the camera is quite standard:
var camera:Camera = Camera.getCamera();
camera.setMode( 800, 400, 15, true );
var video:Video = new Video(camera.width, camera.height);
When I debug I get the camera object but it does not stream anything (fps=0).
Thank you for your help,
Solved! Go to Solution.
07-11-2012 12:34 AM
Either you can use CameraUI class to access video as well as Images from Camera.
private var myCam:CameraUI; myCam = new CameraUI(); myCam.addEventListener(MediaEvent.COMPLETE, onAddImageFromCamera); myCam.launch(MediaType.IMAGE); or myCam.launch(MediaType.VIDEO);
You can have both modes , with zoom front camera access by using it.
You also need to add permission for it.