Quantcast
Viewing all articles
Browse latest Browse all 2010

Webcamera freezes image in desktop AIR application

I've developed many desktop AIR applications over the past four years that use the Camera as it's main source of input and have never had any problems. Lately I'm running into a lot of problems with the camera feed freezing and never recovering in newer versions of the AIR runtime.

 

I do standard Camera.getCamera() requests (both with assigned cameras and just getting the first camera) and attach them to Video objects. But over time, the camera will eventually freeze.

 

Most of the applications I develop are for museum kiosks or motion reactive installations that must run 16 hours or more at a time. I've never had a problem before until the last few months.

 

I would post sample code, but I've run into this across multiple applications and multiple systems (all Windows 7 or 8 at this point). I've even written test applications that do nothing but Camera.getCamera() and Video.attachCamera() and put it on the stage that will eventually freeze. I would try to reconnect to the camera, but Flash never releases them once detected so it can never seem to fix itself.

 

Has anyone else run into this problem? Are there any known fixes for this? Should I be downgrading the AIR runtime I publish with to something from a year or two ago?

 

Please advise...


Viewing all articles
Browse latest Browse all 2010

Trending Articles