Weird camera issue on android tablet pc
I'm developing a live-chat application in AIR/Flex for Android 2.2 Tablet PC. It is not a no-name china device. It is an Exper device, which is a respective company in my country. I'm using Burrito for development. Tablet PC's own camera application can access camera with no problem.
I installed Flash Player 10.1.120.1 and AIR Runtime 2.5.0.1660, and tested youtube's My WebCam page. It is flash and uses webcam, perfect for a quick test.
Youtube complained that it couldn't find any camera on my device. Didn't asked any security questions, though.( Probably Camera.names.length is 0 according to flash player.)
I developed an AIR application which uses good-old Camera.getCamera(); to get video feed. No error received, but there was nothing on the screen.
I developed a little more, and here is a weird thing:
Camera.names.length = 1 and that camera's name is "Default"
Camera.isSupported is true.
CurrentFPS = 0
FPS = -1 (minus one)
weight = -1
height = -1.
I tried a lot of different setMode(); possibilities, but no luck.
How is it possible that those values are -1?
What is the specific requirement for a webcam and/or android tablet pc so that webcam can be accessed from flash/flex. (maybe I can push the manufacturer to release a fix by that requirement, if I know what it is.)
Almost every page, even Adobe's documentation, on this problem refers to the same page: http://www.riagora.com/2010/07/android-air-and-the-camera/
But it didn't help a bit. CameraUI and CameraRoll are not suitable as I need live chat.
What is the plan for this webcam issue on android? Or are we on our own for the time being?
P.S: All Adobe docs refer to android AIR as "AIR on mobile devices". My tablet pc is just a tablet pc, not a phone. This doesn't make any difference, does it?
