The test code works fine for me (Win XP, FP 10).

I'll be working on a project that includes webcam soon and this could be
useful. I'll let you know how it goes if I use it. Thanks for sharing!

Cheers
Juan Pablo Califano

2009/11/4 Ktu <ktu_fl...@cataclysmicrewind.com>

> So I've noticed that Facebook will automatically detect which Camera object
> to use on your computer.
> It seems on most if not all macs there are at least three (3) Camera
> objects
> always available.
> So, I've made a class that will automatically detect which webcam is active
> and running.
>
> Feedback anyone?
>
> Download it here <http://blog.cataclysmicrewind.com/webcamdetection/>
>
> It's pretty simple to use:
>
> import com.crp.utils.WebcamDetection;
> import com.crp.events.WebcamEvent;
>
> var wd:WebcamDetection = new WebcamDetection();
> wd.addEventListener (WebcamEvent.RESOLVE, onResolve);
> wd.begin();
>
> function onResolve (e:WebcamEvent):void {
> trace(e.code);
> switch (e.code) {
> case "success":
> var myCamera:Camera = e.camera;
> break;
> case "noPermission":
> // the user denied permission
> break;
> case "noCameras":
> // no suitable camera's were found
> break;
> }
> }
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to