I have just started a Flex 4.5 project (video and text chat) utilizing FMS.
All works fine appart from I dont seem to be able to use / access the Front camera on my Android device.
Anyone got any clues why not?
I did read somwhere that air 2.6 has a bug regarding this, but I lost the link.
Apologies if this is listed elsewhere.
Currently, AIR only supports access to the primary camera on an Android device, but stay tuned for additional functionality in a future release. However, you might be able to get away with using the native camera UI to allow the user to choose which camera is used. Check out the following blog post:
Hope this helps,
With AIR 2.6, the docs state:
On iOS devices with a both a front- and a rear-facing camera, you can only capture video from one camera at a time. On Android devices, you can only access the rear-facing camera.
Android front facing camera support is planned for a future release, but won't be in the immenent (and current labs) AIR 2.7 release.
I want to tell adobe air team. look example front camera access in java android sdk:
parameters.set("camera-id", 2); //frontcamera!! parameters.setPreviewSize(160,120); camera.setParameters(parameters);
that is very simple, why did you air team not fix?????
Are there any updates on adding this to android really soon? It is an incredibly simple feature which is causing a lot of confusion since it does work in ios and not android. and, personally i'm sitting on a project that i can't upload to the market until this is added to air. I'm really looking forward to sharing what I made using air with the community...
Finally. Thank you.
Now would it be too much to ask to allow access to both cameras simultaneously? This is easily done on the desktop, but so far not possible on mobile devices. It would be great if the design allows for multiple cameras like in desktop AIR/Flash. With 3D phones coming out, this would be an important feature.
Android Front facing camera support has been added in AIR 3 beta build available here.
Also, property to detect camera position is also added in beta actionscript reference:- (position)
I didn't get your question properly but I think you are asking about "AIR for Android" download link.
When you use AIR 3 beta SDK to publish/debug to android device, Flash builder will install AIR runtime on the device and you can start testing.