Skip to main content
Participating Frequently
February 12, 2011
Question

Weird camera issue on android tablet pc

  • February 12, 2011
  • 2 replies
  • 1476 views

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?

This topic has been closed for replies.

2 replies

Participant
June 9, 2011

Hi Akad,

Did you found any solucion to your problem?

I'm having the same problem with my tablet.
The same code works on others devices but not on my tablet.

I believe we are using the same tablet.
Please send me an E-mail when you can.
My email: rodbelisario@gmail.com

Hope you found the solucion.

Participating Frequently
June 9, 2011

First, if you are dealing with camera on android with air, God help you as Adobe lacks proper documentation.

And if you are looking for any answer to your question in this forum, God help you. Because Adobe guys will only answer some question if the answer is something you can already find on Google.

I am now using Archos tablet pc as solution, it works like charm. Don't count on Adobe, look for some other device.

Participating Frequently
June 9, 2011

AIR uses the standard Android OS API to access the camera. If a run-of-the-mill camera app from the market (i.e. not one using a custom API specifically for your device) can access the camera, then an AIR app should also be able to access the camera. Sometimes device makers add their own APIs for cameras, which AIR doesn't know about. This is the case, for example, with the front-cameras on pre-Android 3 devices.

Participating Frequently
February 15, 2011

Please friends, I desperately need help on this.