Skip to main content
Participant
November 16, 2010
Answered

Camera.names.length returns 0, doesn't detect iSight webcam

  • November 16, 2010
  • 1 reply
  • 2667 views

My Air app can no longer get the names of camera devices installed on my Mac.

This was working for months and until a day or so ago I am not sure what happened.

I'm not sure if AIR 2.5.1 update or viewing a website (http://www.2much.net/miricam/freemiricam.php)

with a flash page that showed my webcam messed up some internal flash/air setting.

Running my air app, Camera.names.length now returns 0, when previously it would return 3. Camera.getCamera() doesn't work either (returns null), so I can't view my webcam (iSight).

When I run my air app in the Flex Builder debugger, Camera.names.length returns 3 and I can view my webcam. I am at a loss at how to fix this.

I have tried uninstalling FP, AIR, Manycam (a webcam splitter software), fixing my Mac's permissions using Disk Utility, rebooted, reinstalled FP, AIR, Manycam. Trashed the /User/Library/Application Support/Adobe/AIR folder. Nothing fixes it. Tried it without Manycam running but the problem is still there.

Does anyone know what is going on and how can I fix this?

Air 2.5.1.17730 17730

Mac OS X 10.6.5

FP 10,1,102,64

This topic has been closed for replies.
Correct answer chris.campbell

I've been able to reproduce this and just entered it as a new internal bug (#2759261).  I was unable to repro it on Windows, but it did occur on Mac with AIR 2.5.1.  Reverting to 2.5.0 returns functionality.

If you're interested, our Archived AIR Runtime and SDK page contains a link to our SettingsManager application that can disable the automatic update prompts.  I apologize for the inconvenience and thanks again for bringing this issue up.

Thanks,

Chris


2.5.1.1 (Mac only) was released last week and should address this bug.  Please let me know if you continue to have problems.

Thanks,

Chris

1 reply

Participant
November 17, 2010

Fixed it on my own. Adobe there is a bug with AIR 2.5.1!

http://scottwyden.com/did-your-webcam-stop-working-this-could-be-your-fix/

I followed the steps on that site and it fixed it. No I don't have Spark Booth but the steps still fixed the problem.

chris.campbell
Community Manager
Community Manager
November 17, 2010

Thanks for the info and workaround steps.  I'll research this and let you know what I find asap.

Chris

Participant
February 4, 2011

2.5.1.1 (Mac only) was released last week and should address this bug.  Please let me know if you continue to have problems.

Thanks,

Chris


I am Running:

     - MAC OS X 10.6.6 (Snow Leopoard).

     - Flash Player 10.1.102.64 (debugger)

     - Adobe AIR 2.5.1.1 (MAC)

     - Adobe Flex 4.1.0

I have compiled a simple test 1 Flex app & 1 AIR app with the following code:

     trace(Camera.names.length);

The Flex app returns 3 camers (my iSight, and 2 usb connected Logitech Cameras).

The AIR app returns 1 camera(USB Device).I am building an app that requires the use

of the 2 USB connected Logitech Cameras. It works in Flex but not in AIR.

I have tried to roll back to AIR 2.5 and to the newest AIR 2.5.1.1 and no luck.