开发者

AS3 Camera selection

Has anyone build a AS3 Camera-Select-algorithm, ready to use?

With MacBooks you have the problem that the build-in webcam is not rightly choosen from the webplayer. You have to se开发者_JAVA百科lect the USP-Cam by youself from the list

DV Video IIDC FireWire Video USB Video Class Video

by

camera = Camera.getCamera("2");

THNX!


I found kind of a workaround here


You cant actually set the camera programatically. The best you can do is prompt the user to set it next to a video panel to show them if the camera they've chosen actually works. example here: http://www.neave.com/webcam/

to prompt them to change cameras you use: Security.showSettings(SecurityPanel.CAMERA)

there is no event to wait for, though you can poll your video panel's bitmap data for changes and prompt the user behind the security panel when you think they've chosen the right camera.


Having done battle with this problem, I would suggest that everyone use this library.

https://github.com/cataclysmicrewind/CameraDetection/

Flash + webcam should = easy + awesome. Unfortunately, it is pain + suffering.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜