I've made an update to my class. I added better Mac detection so the process goes quicker on Macs. I've also updated the detection math in general.
Please if you downloaded it, re-download and update with the new version. Feedback is nice, and I hope you like it. WebcamDetection <http://blog.cataclysmicrewind.com/webcamdetection/> Ktu On Fri, Nov 6, 2009 at 4:31 PM, Ktu <ktu_fl...@cataclysmicrewind.com> wrote: > Thanks Juan, I hope you find it beneficial and easy to use. > > I also plan on making another update to it this week to make its detection > a little more robust. > Since most of my reasoning for creating the class was because Macs suck and > always have three cameras in the list, I am going to add some special Mac > detection which should speed up the process for all Mac laptops. > > Ktu > > > On Wed, Nov 4, 2009 at 11:08 AM, Juan Pablo Califano < > califa010.flashcod...@gmail.com> wrote: > >> 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 >> > > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders