Re: [Flashcoders] webcam wackiness...
ok, here is the most basic webcam script in the world as provided by cedric :) http://46.4.226.29/camtest/flash9/ this does not work in chrome v 14 on a pc or on a host of macs. anyone? On 19 September 2011 16:05, tom rhodes tom.rho...@gmail.com wrote: anyone got any ideas why this script is failing on so many machines? 2011/9/19 Cédric Muller flashco...@benga.li yes, it works ok cheers for the testing, does the simple script work for you in a browser? 2011/9/19 Cédric Muller flashco...@benga.li I don't have GoogleTalk plugin, actually I am not Google wavy, so I have nothing 'Google' on my mac. I don't even have Chrome installed. Just tested in Safari and it didn't work. I do get the same 'camera.muted' status with Safari (no dialog, just a blank white screen) always living across the border, under the mountains :) but had a baby, a baby from the mountains ;) yeah started with basic code like that, you on a mac with googletalk plugin installed? i think it may have something to do with that. if you look at my code the actual attahcing of the camera is the same. on chrome 14 i get one Camera.muted from teh status event and then nothing. no dialog or anything. same behaviour being reported on macs (not got one here). just outside rome these days man, you across the border in the mountains still? 2011/9/19 Cédric Muller flashco...@benga.li hey ya tom! still does not work :( did you try the following overbasic code ? (works here) var video:Video = new Video(640, 480); var camera:Camera = Camera.getCamera(); camera.setMode(640, 480, 30); video.attachCamera(camera); addChild(video); hth, Cedric ps: still in Roma ? http://46.4.226.29/camtest/ updated to include a dropdown of all camera's on the system, and a button to kick them off with. right now, if it only finds one camera it will attempt to attach it, if it finds more than one it will wait for you to select which one you want to use and then click start webcam button. this fails for me in chrome v 14, and i'm told on a mac in any browser. source below... package { import fl.controls.Button; import fl.controls.ComboBox; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.StatusEvent; import flash.external.ExternalInterface; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; private var combo:ComboBox; private var dp:DataProvider; private var butt:Button; public function Main():void { if (stage) init(); else addEventListener(Event.INIT, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point combo = new ComboBox(); combo.prompt = Select a webcam...; dp = new DataProvider(); var camList:Array = Camera.names; for (var i:int = 0; i camList.length; i++) { var camName:String = camList[i]; dp.addItemAt( { label:camName, data:String(i) }, i ); /*if (camName.indexOf(Google) -1) { var googleCam:Camera = Camera.getCamera(i.toString()) googleCam.setMode(400, 300, 30, false); var vid:Video = new Video(cam.width, cam.height); vid.attachCamera(googleCam); }*/ } addChild(combo); combo.x = 10; combo.y = 10; combo.width = 150; combo.dataProvider = dp; combo.addEventListener(Event.CHANGE, comboSelected); if (dp.length == 1) attachCamera(0); butt = new Button(); butt.y = combo.y; butt.x = combo.x + combo.width + 15; butt.label = Start Webcam; butt.width = 100; addChild(butt); } private function comboSelected(e:Event):void { butt.addEventListener(MouseEvent.CLICK, buttClicked); } private function buttClicked(e:MouseEvent):void { cam.removeEventListener(StatusEvent.STATUS, startcam); cam = null; removeChild(video); video = null; attachCamera(combo.selectedItem.data); } private function attachCamera(camIndex:String):void { cam = Camera.getCamera(camIndex); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); video.y = 50; video.x = 10; cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { if (ExternalInterface.available) ExternalInterface.call(alert, event.toString()); } } } On 19 September 2011 10:24, tom rhodes tom.rho...@gmail.com wrote: hey cedric if you've got code that you think 100% works on everything send it on and i'll put it up on the link. i thought that too :) after googling i've found stuff about looping through character names and attaching google cameras to video objects offstage, or pulling out the name
Re: [Flashcoders] webcam wackiness...
ok, I found something :) Does not work: http://46.4.226.29/camtest/flash9/ Works: http://46.4.226.29/camtest/flash9/camflash9.swf Difference: HTML / JS / Detection havok hth, Cedric HTML 99% bad :P ok, here is the most basic webcam script in the world as provided by cedric :) http://46.4.226.29/camtest/flash9/ this does not work in chrome v 14 on a pc or on a host of macs. anyone? On 19 September 2011 16:05, tom rhodes tom.rho...@gmail.com wrote: anyone got any ideas why this script is failing on so many machines? 2011/9/19 Cédric Muller flashco...@benga.li yes, it works ok cheers for the testing, does the simple script work for you in a browser? 2011/9/19 Cédric Muller flashco...@benga.li I don't have GoogleTalk plugin, actually I am not Google wavy, so I have nothing 'Google' on my mac. I don't even have Chrome installed. Just tested in Safari and it didn't work. I do get the same 'camera.muted' status with Safari (no dialog, just a blank white screen) always living across the border, under the mountains :) but had a baby, a baby from the mountains ;) yeah started with basic code like that, you on a mac with googletalk plugin installed? i think it may have something to do with that. if you look at my code the actual attahcing of the camera is the same. on chrome 14 i get one Camera.muted from teh status event and then nothing. no dialog or anything. same behaviour being reported on macs (not got one here). just outside rome these days man, you across the border in the mountains still? 2011/9/19 Cédric Muller flashco...@benga.li hey ya tom! still does not work :( did you try the following overbasic code ? (works here) var video:Video = new Video(640, 480); var camera:Camera = Camera.getCamera(); camera.setMode(640, 480, 30); video.attachCamera(camera); addChild(video); hth, Cedric ps: still in Roma ? http://46.4.226.29/camtest/ updated to include a dropdown of all camera's on the system, and a button to kick them off with. right now, if it only finds one camera it will attempt to attach it, if it finds more than one it will wait for you to select which one you want to use and then click start webcam button. this fails for me in chrome v 14, and i'm told on a mac in any browser. source below... package { import fl.controls.Button; import fl.controls.ComboBox; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.StatusEvent; import flash.external.ExternalInterface; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; private var combo:ComboBox; private var dp:DataProvider; private var butt:Button; public function Main():void { if (stage) init(); else addEventListener(Event.INIT, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point combo = new ComboBox(); combo.prompt = Select a webcam...; dp = new DataProvider(); var camList:Array = Camera.names; for (var i:int = 0; i camList.length; i++) { var camName:String = camList[i]; dp.addItemAt( { label:camName, data:String(i) }, i ); /*if (camName.indexOf(Google) -1) { var googleCam:Camera = Camera.getCamera(i.toString()) googleCam.setMode(400, 300, 30, false); var vid:Video = new Video(cam.width, cam.height); vid.attachCamera(googleCam); }*/ } addChild(combo); combo.x = 10; combo.y = 10; combo.width = 150; combo.dataProvider = dp; combo.addEventListener(Event.CHANGE, comboSelected); if (dp.length == 1) attachCamera(0); butt = new Button(); butt.y = combo.y; butt.x = combo.x + combo.width + 15; butt.label = Start Webcam; butt.width = 100; addChild(butt); } private function comboSelected(e:Event):void { butt.addEventListener(MouseEvent.CLICK, buttClicked); } private function buttClicked(e:MouseEvent):void { cam.removeEventListener(StatusEvent.STATUS, startcam); cam = null; removeChild(video); video = null; attachCamera(combo.selectedItem.data); } private function attachCamera(camIndex:String):void { cam = Camera.getCamera(camIndex); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); video.y = 50; video.x = 10; cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { if (ExternalInterface.available) ExternalInterface.call(alert, event.toString()); } } } On 19 September 2011 10:24, tom rhodes tom.rho...@gmail.com wrote: hey cedric if you've got code that you think 100% works on everything send it on and i'll put it up on the link. i thought that too :) after googling i've found stuff about looping through character names and
Re: [Flashcoders] webcam wackiness...
yeah this is terrible, this worked for years, anyone got a fix? 2011/9/20 Cédric Muller flashco...@benga.li ok, I found something :) Does not work: http://46.4.226.29/camtest/flash9/ Works: http://46.4.226.29/camtest/flash9/camflash9.swf Difference: HTML / JS / Detection havok hth, Cedric HTML 99% bad :P ok, here is the most basic webcam script in the world as provided by cedric :) http://46.4.226.29/camtest/flash9/ this does not work in chrome v 14 on a pc or on a host of macs. anyone? On 19 September 2011 16:05, tom rhodes tom.rho...@gmail.com wrote: anyone got any ideas why this script is failing on so many machines? 2011/9/19 Cédric Muller flashco...@benga.li yes, it works ok cheers for the testing, does the simple script work for you in a browser? 2011/9/19 Cédric Muller flashco...@benga.li I don't have GoogleTalk plugin, actually I am not Google wavy, so I have nothing 'Google' on my mac. I don't even have Chrome installed. Just tested in Safari and it didn't work. I do get the same 'camera.muted' status with Safari (no dialog, just a blank white screen) always living across the border, under the mountains :) but had a baby, a baby from the mountains ;) yeah started with basic code like that, you on a mac with googletalk plugin installed? i think it may have something to do with that. if you look at my code the actual attahcing of the camera is the same. on chrome 14 i get one Camera.muted from teh status event and then nothing. no dialog or anything. same behaviour being reported on macs (not got one here). just outside rome these days man, you across the border in the mountains still? 2011/9/19 Cédric Muller flashco...@benga.li hey ya tom! still does not work :( did you try the following overbasic code ? (works here) var video:Video = new Video(640, 480); var camera:Camera = Camera.getCamera(); camera.setMode(640, 480, 30); video.attachCamera(camera); addChild(video); hth, Cedric ps: still in Roma ? http://46.4.226.29/camtest/ updated to include a dropdown of all camera's on the system, and a button to kick them off with. right now, if it only finds one camera it will attempt to attach it, if it finds more than one it will wait for you to select which one you want to use and then click start webcam button. this fails for me in chrome v 14, and i'm told on a mac in any browser. source below... package { import fl.controls.Button; import fl.controls.ComboBox; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.StatusEvent; import flash.external.ExternalInterface; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; private var combo:ComboBox; private var dp:DataProvider; private var butt:Button; public function Main():void { if (stage) init(); else addEventListener(Event.INIT, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point combo = new ComboBox(); combo.prompt = Select a webcam...; dp = new DataProvider(); var camList:Array = Camera.names; for (var i:int = 0; i camList.length; i++) { var camName:String = camList[i]; dp.addItemAt( { label:camName, data:String(i) }, i ); /*if (camName.indexOf(Google) -1) { var googleCam:Camera = Camera.getCamera(i.toString()) googleCam.setMode(400, 300, 30, false); var vid:Video = new Video(cam.width, cam.height); vid.attachCamera(googleCam); }*/ } addChild(combo); combo.x = 10; combo.y = 10; combo.width = 150; combo.dataProvider = dp; combo.addEventListener(Event.CHANGE, comboSelected); if (dp.length == 1) attachCamera(0); butt = new Button(); butt.y = combo.y; butt.x = combo.x + combo.width + 15; butt.label = Start Webcam; butt.width = 100; addChild(butt); } private function comboSelected(e:Event):void { butt.addEventListener(MouseEvent.CLICK, buttClicked); } private function buttClicked(e:MouseEvent):void { cam.removeEventListener(StatusEvent.STATUS, startcam); cam = null; removeChild(video); video = null; attachCamera(combo.selectedItem.data); } private function attachCamera(camIndex:String):void { cam = Camera.getCamera(camIndex); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); video.y = 50; video.x = 10; cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { if (ExternalInterface.available) ExternalInterface.call(alert, event.toString()); } } } On 19 September
Re: [Flashcoders] webcam wackiness...
I recently developing an AR apps and my clients also face the same problem. I asked them to update their flash player to 10.3.183.7 Check MAC flash player version by visiting the page - http://www.adobe.com/software/flash/about/ I'm using the latest FP version, and Tom's link didn't work for me. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] webcam wackiness...
Hi Tom, I used the code for web camera below and the latest version of flash player - 10.3.183.7: private function showCameraLists():void { var cam:Camera = Camera.getCamera(); if(cam == null){ ExternalInterface.call('alert', No Web Camera found!); return; } var camNames:Array = Camera.names; var index:Number = 0; for ( var i : int = 0 ; i camNames.length ; i++ ) { if (camNames[i] == USB Video Class Video ) { index = i; } } if(index 0){ createCamera(index.toString()); }else{ createCamera(); } } private function createCamera( cameraIndex:String=null ):void { webcam = Camera.getCamera( cameraIndex ); webcam.setMode( cameraWidth, cameraHeight, cameraFrameRate, true ); webcam.setMotionLevel(70, 2000); webcam.addEventListener( ActivityEvent.ACTIVITY, onCameraActivity, false, 0, true ); webcam.addEventListener( StatusEvent.STATUS, onCameraStatus ); videoMatrix = new Matrix(); videoMatrix.a = -1; // scale(-1, 0); // flip horizontal assuming that scaleX is currently 1 videoMatrix.tx = this.cameraWidth; video = new Video( webcam.width, webcam.height ); video.attachCamera( webcam ); } Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah ||http://www.manasamarthyadata.com/ *Think of the environment before printing this email __ * On Mon, Sep 19, 2011 at 12:16 PM, Dave Watts dwa...@figleaf.com wrote: I recently developing an AR apps and my clients also face the same problem. I asked them to update their flash player to 10.3.183.7 Check MAC flash player version by visiting the page - http://www.adobe.com/software/flash/about/ I'm using the latest FP version, and Tom's link didn't work for me. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ 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
Re: [Flashcoders] webcam wackiness...
Doesn't work for me, Mac, Safari 5.1 and Flash Player 10.3.181.14 Could you drop the 'if (stage) init' line ? (I am asking because I have plenty of webcam examples, and they do work) hth, Cedric hey all, i want to confirm that this... http://46.4.226.29/camtest/ does not work on a mac, and in chrome 14 beta on the pc? massively simple webcam example, source below... code package { import flash.display.Sprite; import flash.events.Event; import flash.events.StatusEvent; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point cam = Camera.getCamera(); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { // stuff } } } /code i've NEVER experienced probs with webcam before, what is going on here? tom. ___ 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
Re: [Flashcoders] webcam wackiness...
hey cedric if you've got code that you think 100% works on everything send it on and i'll put it up on the link. i thought that too :) after googling i've found stuff about looping through character names and attaching google cameras to video objects offstage, or pulling out the name for the usb cam on a mac if on mac OS, or even just using index 2 for the mac. all seem a bit hacky to me. this is somethign that has worked in flash fine for a LONG time, that now appears to be broken. what's up? 2011/9/19 Cédric Muller flashco...@benga.li Doesn't work for me, Mac, Safari 5.1 and Flash Player 10.3.181.14 Could you drop the 'if (stage) init' line ? (I am asking because I have plenty of webcam examples, and they do work) hth, Cedric hey all, i want to confirm that this... http://46.4.226.29/camtest/ does not work on a mac, and in chrome 14 beta on the pc? massively simple webcam example, source below... code package { import flash.display.Sprite; import flash.events.Event; import flash.events.StatusEvent; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point cam = Camera.getCamera(); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { // stuff } } } /code i've NEVER experienced probs with webcam before, what is going on here? tom. ___ 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
Re: [Flashcoders] webcam wackiness...
http://46.4.226.29/camtest/ updated to include a dropdown of all camera's on the system, and a button to kick them off with. right now, if it only finds one camera it will attempt to attach it, if it finds more than one it will wait for you to select which one you want to use and then click start webcam button. this fails for me in chrome v 14, and i'm told on a mac in any browser. source below... package { import fl.controls.Button; import fl.controls.ComboBox; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.StatusEvent; import flash.external.ExternalInterface; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; private var combo:ComboBox; private var dp:DataProvider; private var butt:Button; public function Main():void { if (stage) init(); else addEventListener(Event.INIT, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point combo = new ComboBox(); combo.prompt = Select a webcam...; dp = new DataProvider(); var camList:Array = Camera.names; for (var i:int = 0; i camList.length; i++) { var camName:String = camList[i]; dp.addItemAt( { label:camName, data:String(i) }, i ); /*if (camName.indexOf(Google) -1) { var googleCam:Camera = Camera.getCamera(i.toString()) googleCam.setMode(400, 300, 30, false); var vid:Video = new Video(cam.width, cam.height); vid.attachCamera(googleCam); }*/ } addChild(combo); combo.x = 10; combo.y = 10; combo.width = 150; combo.dataProvider = dp; combo.addEventListener(Event.CHANGE, comboSelected); if (dp.length == 1) attachCamera(0); butt = new Button(); butt.y = combo.y; butt.x = combo.x + combo.width + 15; butt.label = Start Webcam; butt.width = 100; addChild(butt); } private function comboSelected(e:Event):void { butt.addEventListener(MouseEvent.CLICK, buttClicked); } private function buttClicked(e:MouseEvent):void { cam.removeEventListener(StatusEvent.STATUS, startcam); cam = null; removeChild(video); video = null; attachCamera(combo.selectedItem.data); } private function attachCamera(camIndex:String):void { cam = Camera.getCamera(camIndex); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); video.y = 50; video.x = 10; cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { if (ExternalInterface.available) ExternalInterface.call(alert, event.toString()); } } } On 19 September 2011 10:24, tom rhodes tom.rho...@gmail.com wrote: hey cedric if you've got code that you think 100% works on everything send it on and i'll put it up on the link. i thought that too :) after googling i've found stuff about looping through character names and attaching google cameras to video objects offstage, or pulling out the name for the usb cam on a mac if on mac OS, or even just using index 2 for the mac. all seem a bit hacky to me. this is somethign that has worked in flash fine for a LONG time, that now appears to be broken. what's up? 2011/9/19 Cédric Muller flashco...@benga.li Doesn't work for me, Mac, Safari 5.1 and Flash Player 10.3.181.14 Could you drop the 'if (stage) init' line ? (I am asking because I have plenty of webcam examples, and they do work) hth, Cedric hey all, i want to confirm that this... http://46.4.226.29/camtest/ does not work on a mac, and in chrome 14 beta on the pc? massively simple webcam example, source below... code package { import flash.display.Sprite; import flash.events.Event; import flash.events.StatusEvent; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point cam = Camera.getCamera(); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { // stuff } } } /code i've NEVER experienced probs with webcam before, what is going on here? tom. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
Re: [Flashcoders] webcam wackiness...
hey ya tom! still does not work :( did you try the following overbasic code ? (works here) var video:Video = new Video(640, 480); var camera:Camera = Camera.getCamera(); camera.setMode(640, 480, 30); video.attachCamera(camera); addChild(video); hth, Cedric ps: still in Roma ? http://46.4.226.29/camtest/ updated to include a dropdown of all camera's on the system, and a button to kick them off with. right now, if it only finds one camera it will attempt to attach it, if it finds more than one it will wait for you to select which one you want to use and then click start webcam button. this fails for me in chrome v 14, and i'm told on a mac in any browser. source below... package { import fl.controls.Button; import fl.controls.ComboBox; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.StatusEvent; import flash.external.ExternalInterface; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; private var combo:ComboBox; private var dp:DataProvider; private var butt:Button; public function Main():void { if (stage) init(); else addEventListener(Event.INIT, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point combo = new ComboBox(); combo.prompt = Select a webcam...; dp = new DataProvider(); var camList:Array = Camera.names; for (var i:int = 0; i camList.length; i++) { var camName:String = camList[i]; dp.addItemAt( { label:camName, data:String(i) }, i ); /*if (camName.indexOf(Google) -1) { var googleCam:Camera = Camera.getCamera(i.toString()) googleCam.setMode(400, 300, 30, false); var vid:Video = new Video(cam.width, cam.height); vid.attachCamera(googleCam); }*/ } addChild(combo); combo.x = 10; combo.y = 10; combo.width = 150; combo.dataProvider = dp; combo.addEventListener(Event.CHANGE, comboSelected); if (dp.length == 1) attachCamera(0); butt = new Button(); butt.y = combo.y; butt.x = combo.x + combo.width + 15; butt.label = Start Webcam; butt.width = 100; addChild(butt); } private function comboSelected(e:Event):void { butt.addEventListener(MouseEvent.CLICK, buttClicked); } private function buttClicked(e:MouseEvent):void { cam.removeEventListener(StatusEvent.STATUS, startcam); cam = null; removeChild(video); video = null; attachCamera(combo.selectedItem.data); } private function attachCamera(camIndex:String):void { cam = Camera.getCamera(camIndex); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); video.y = 50; video.x = 10; cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { if (ExternalInterface.available) ExternalInterface.call(alert, event.toString()); } } } On 19 September 2011 10:24, tom rhodes tom.rho...@gmail.com wrote: hey cedric if you've got code that you think 100% works on everything send it on and i'll put it up on the link. i thought that too :) after googling i've found stuff about looping through character names and attaching google cameras to video objects offstage, or pulling out the name for the usb cam on a mac if on mac OS, or even just using index 2 for the mac. all seem a bit hacky to me. this is somethign that has worked in flash fine for a LONG time, that now appears to be broken. what's up? 2011/9/19 Cédric Muller flashco...@benga.li Doesn't work for me, Mac, Safari 5.1 and Flash Player 10.3.181.14 Could you drop the 'if (stage) init' line ? (I am asking because I have plenty of webcam examples, and they do work) hth, Cedric hey all, i want to confirm that this... http://46.4.226.29/camtest/ does not work on a mac, and in chrome 14 beta on the pc? massively simple webcam example, source below... code package { import flash.display.Sprite; import flash.events.Event; import flash.events.StatusEvent; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point cam = Camera.getCamera(); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { // stuff } } } /code i've NEVER experienced probs with webcam before, what is going on here? tom.
Re: [Flashcoders] webcam wackiness...
yeah started with basic code like that, you on a mac with googletalk plugin installed? i think it may have something to do with that. if you look at my code the actual attahcing of the camera is the same. on chrome 14 i get one Camera.muted from teh status event and then nothing. no dialog or anything. same behaviour being reported on macs (not got one here). just outside rome these days man, you across the border in the mountains still? 2011/9/19 Cédric Muller flashco...@benga.li hey ya tom! still does not work :( did you try the following overbasic code ? (works here) var video:Video = new Video(640, 480); var camera:Camera = Camera.getCamera(); camera.setMode(640, 480, 30); video.attachCamera(camera); addChild(video); hth, Cedric ps: still in Roma ? http://46.4.226.29/camtest/ updated to include a dropdown of all camera's on the system, and a button to kick them off with. right now, if it only finds one camera it will attempt to attach it, if it finds more than one it will wait for you to select which one you want to use and then click start webcam button. this fails for me in chrome v 14, and i'm told on a mac in any browser. source below... package { import fl.controls.Button; import fl.controls.ComboBox; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.StatusEvent; import flash.external.ExternalInterface; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; private var combo:ComboBox; private var dp:DataProvider; private var butt:Button; public function Main():void { if (stage) init(); else addEventListener(Event.INIT, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point combo = new ComboBox(); combo.prompt = Select a webcam...; dp = new DataProvider(); var camList:Array = Camera.names; for (var i:int = 0; i camList.length; i++) { var camName:String = camList[i]; dp.addItemAt( { label:camName, data:String(i) }, i ); /*if (camName.indexOf(Google) -1) { var googleCam:Camera = Camera.getCamera(i.toString()) googleCam.setMode(400, 300, 30, false); var vid:Video = new Video(cam.width, cam.height); vid.attachCamera(googleCam); }*/ } addChild(combo); combo.x = 10; combo.y = 10; combo.width = 150; combo.dataProvider = dp; combo.addEventListener(Event.CHANGE, comboSelected); if (dp.length == 1) attachCamera(0); butt = new Button(); butt.y = combo.y; butt.x = combo.x + combo.width + 15; butt.label = Start Webcam; butt.width = 100; addChild(butt); } private function comboSelected(e:Event):void { butt.addEventListener(MouseEvent.CLICK, buttClicked); } private function buttClicked(e:MouseEvent):void { cam.removeEventListener(StatusEvent.STATUS, startcam); cam = null; removeChild(video); video = null; attachCamera(combo.selectedItem.data); } private function attachCamera(camIndex:String):void { cam = Camera.getCamera(camIndex); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); video.y = 50; video.x = 10; cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { if (ExternalInterface.available) ExternalInterface.call(alert, event.toString()); } } } On 19 September 2011 10:24, tom rhodes tom.rho...@gmail.com wrote: hey cedric if you've got code that you think 100% works on everything send it on and i'll put it up on the link. i thought that too :) after googling i've found stuff about looping through character names and attaching google cameras to video objects offstage, or pulling out the name for the usb cam on a mac if on mac OS, or even just using index 2 for the mac. all seem a bit hacky to me. this is somethign that has worked in flash fine for a LONG time, that now appears to be broken. what's up? 2011/9/19 Cédric Muller flashco...@benga.li Doesn't work for me, Mac, Safari 5.1 and Flash Player 10.3.181.14 Could you drop the 'if (stage) init' line ? (I am asking because I have plenty of webcam examples, and they do work) hth, Cedric hey all, i want to confirm that this... http://46.4.226.29/camtest/ does not work on a mac, and in chrome 14 beta on the pc? massively simple webcam example, source below... code package { import flash.display.Sprite; import flash.events.Event; import flash.events.StatusEvent; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; public function Main():void
Re: [Flashcoders] webcam wackiness...
I don't have GoogleTalk plugin, actually I am not Google wavy, so I have nothing 'Google' on my mac. I don't even have Chrome installed. Just tested in Safari and it didn't work. I do get the same 'camera.muted' status with Safari (no dialog, just a blank white screen) always living across the border, under the mountains :) but had a baby, a baby from the mountains ;) yeah started with basic code like that, you on a mac with googletalk plugin installed? i think it may have something to do with that. if you look at my code the actual attahcing of the camera is the same. on chrome 14 i get one Camera.muted from teh status event and then nothing. no dialog or anything. same behaviour being reported on macs (not got one here). just outside rome these days man, you across the border in the mountains still? 2011/9/19 Cédric Muller flashco...@benga.li hey ya tom! still does not work :( did you try the following overbasic code ? (works here) var video:Video = new Video(640, 480); var camera:Camera = Camera.getCamera(); camera.setMode(640, 480, 30); video.attachCamera(camera); addChild(video); hth, Cedric ps: still in Roma ? http://46.4.226.29/camtest/ updated to include a dropdown of all camera's on the system, and a button to kick them off with. right now, if it only finds one camera it will attempt to attach it, if it finds more than one it will wait for you to select which one you want to use and then click start webcam button. this fails for me in chrome v 14, and i'm told on a mac in any browser. source below... package { import fl.controls.Button; import fl.controls.ComboBox; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.StatusEvent; import flash.external.ExternalInterface; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; private var combo:ComboBox; private var dp:DataProvider; private var butt:Button; public function Main():void { if (stage) init(); else addEventListener(Event.INIT, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point combo = new ComboBox(); combo.prompt = Select a webcam...; dp = new DataProvider(); var camList:Array = Camera.names; for (var i:int = 0; i camList.length; i++) { var camName:String = camList[i]; dp.addItemAt( { label:camName, data:String(i) }, i ); /*if (camName.indexOf(Google) -1) { var googleCam:Camera = Camera.getCamera(i.toString()) googleCam.setMode(400, 300, 30, false); var vid:Video = new Video(cam.width, cam.height); vid.attachCamera(googleCam); }*/ } addChild(combo); combo.x = 10; combo.y = 10; combo.width = 150; combo.dataProvider = dp; combo.addEventListener(Event.CHANGE, comboSelected); if (dp.length == 1) attachCamera(0); butt = new Button(); butt.y = combo.y; butt.x = combo.x + combo.width + 15; butt.label = Start Webcam; butt.width = 100; addChild(butt); } private function comboSelected(e:Event):void { butt.addEventListener(MouseEvent.CLICK, buttClicked); } private function buttClicked(e:MouseEvent):void { cam.removeEventListener(StatusEvent.STATUS, startcam); cam = null; removeChild(video); video = null; attachCamera(combo.selectedItem.data); } private function attachCamera(camIndex:String):void { cam = Camera.getCamera(camIndex); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); video.y = 50; video.x = 10; cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { if (ExternalInterface.available) ExternalInterface.call(alert, event.toString()); } } } On 19 September 2011 10:24, tom rhodes tom.rho...@gmail.com wrote: hey cedric if you've got code that you think 100% works on everything send it on and i'll put it up on the link. i thought that too :) after googling i've found stuff about looping through character names and attaching google cameras to video objects offstage, or pulling out the name for the usb cam on a mac if on mac OS, or even just using index 2 for the mac. all seem a bit hacky to me. this is somethign that has worked in flash fine for a LONG time, that now appears to be broken. what's up? 2011/9/19 Cédric Muller flashco...@benga.li Doesn't work for me, Mac, Safari 5.1 and Flash Player 10.3.181.14 Could you drop the 'if (stage) init' line ? (I am asking because I have plenty of webcam examples, and they do work) hth, Cedric hey all, i want to confirm that this... http://46.4.226.29/camtest/ does not work on a mac, and in chrome 14 beta on the pc? massively simple webcam example, source below... code package {
Re: [Flashcoders] webcam wackiness...
ok cheers for the testing, does the simple script work for you in a browser? 2011/9/19 Cédric Muller flashco...@benga.li I don't have GoogleTalk plugin, actually I am not Google wavy, so I have nothing 'Google' on my mac. I don't even have Chrome installed. Just tested in Safari and it didn't work. I do get the same 'camera.muted' status with Safari (no dialog, just a blank white screen) always living across the border, under the mountains :) but had a baby, a baby from the mountains ;) yeah started with basic code like that, you on a mac with googletalk plugin installed? i think it may have something to do with that. if you look at my code the actual attahcing of the camera is the same. on chrome 14 i get one Camera.muted from teh status event and then nothing. no dialog or anything. same behaviour being reported on macs (not got one here). just outside rome these days man, you across the border in the mountains still? 2011/9/19 Cédric Muller flashco...@benga.li hey ya tom! still does not work :( did you try the following overbasic code ? (works here) var video:Video = new Video(640, 480); var camera:Camera = Camera.getCamera(); camera.setMode(640, 480, 30); video.attachCamera(camera); addChild(video); hth, Cedric ps: still in Roma ? http://46.4.226.29/camtest/ updated to include a dropdown of all camera's on the system, and a button to kick them off with. right now, if it only finds one camera it will attempt to attach it, if it finds more than one it will wait for you to select which one you want to use and then click start webcam button. this fails for me in chrome v 14, and i'm told on a mac in any browser. source below... package { import fl.controls.Button; import fl.controls.ComboBox; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.StatusEvent; import flash.external.ExternalInterface; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; private var combo:ComboBox; private var dp:DataProvider; private var butt:Button; public function Main():void { if (stage) init(); else addEventListener(Event.INIT, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point combo = new ComboBox(); combo.prompt = Select a webcam...; dp = new DataProvider(); var camList:Array = Camera.names; for (var i:int = 0; i camList.length; i++) { var camName:String = camList[i]; dp.addItemAt( { label:camName, data:String(i) }, i ); /*if (camName.indexOf(Google) -1) { var googleCam:Camera = Camera.getCamera(i.toString()) googleCam.setMode(400, 300, 30, false); var vid:Video = new Video(cam.width, cam.height); vid.attachCamera(googleCam); }*/ } addChild(combo); combo.x = 10; combo.y = 10; combo.width = 150; combo.dataProvider = dp; combo.addEventListener(Event.CHANGE, comboSelected); if (dp.length == 1) attachCamera(0); butt = new Button(); butt.y = combo.y; butt.x = combo.x + combo.width + 15; butt.label = Start Webcam; butt.width = 100; addChild(butt); } private function comboSelected(e:Event):void { butt.addEventListener(MouseEvent.CLICK, buttClicked); } private function buttClicked(e:MouseEvent):void { cam.removeEventListener(StatusEvent.STATUS, startcam); cam = null; removeChild(video); video = null; attachCamera(combo.selectedItem.data); } private function attachCamera(camIndex:String):void { cam = Camera.getCamera(camIndex); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); video.y = 50; video.x = 10; cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { if (ExternalInterface.available) ExternalInterface.call(alert, event.toString()); } } } On 19 September 2011 10:24, tom rhodes tom.rho...@gmail.com wrote: hey cedric if you've got code that you think 100% works on everything send it on and i'll put it up on the link. i thought that too :) after googling i've found stuff about looping through character names and attaching google cameras to video objects offstage, or pulling out the name for the usb cam on a mac if on mac OS, or even just using index 2 for the mac. all seem a bit hacky to me. this is somethign that has worked in flash fine for a LONG time, that now appears to be broken. what's up? 2011/9/19 Cédric Muller flashco...@benga.li Doesn't work for me, Mac, Safari 5.1 and Flash Player 10.3.181.14 Could you drop the 'if (stage) init' line ? (I am asking because I have plenty
Re: [Flashcoders] webcam wackiness...
yes, it works ok cheers for the testing, does the simple script work for you in a browser? 2011/9/19 Cédric Muller flashco...@benga.li I don't have GoogleTalk plugin, actually I am not Google wavy, so I have nothing 'Google' on my mac. I don't even have Chrome installed. Just tested in Safari and it didn't work. I do get the same 'camera.muted' status with Safari (no dialog, just a blank white screen) always living across the border, under the mountains :) but had a baby, a baby from the mountains ;) yeah started with basic code like that, you on a mac with googletalk plugin installed? i think it may have something to do with that. if you look at my code the actual attahcing of the camera is the same. on chrome 14 i get one Camera.muted from teh status event and then nothing. no dialog or anything. same behaviour being reported on macs (not got one here). just outside rome these days man, you across the border in the mountains still? 2011/9/19 Cédric Muller flashco...@benga.li hey ya tom! still does not work :( did you try the following overbasic code ? (works here) var video:Video = new Video(640, 480); var camera:Camera = Camera.getCamera(); camera.setMode(640, 480, 30); video.attachCamera(camera); addChild(video); hth, Cedric ps: still in Roma ? http://46.4.226.29/camtest/ updated to include a dropdown of all camera's on the system, and a button to kick them off with. right now, if it only finds one camera it will attempt to attach it, if it finds more than one it will wait for you to select which one you want to use and then click start webcam button. this fails for me in chrome v 14, and i'm told on a mac in any browser. source below... package { import fl.controls.Button; import fl.controls.ComboBox; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.StatusEvent; import flash.external.ExternalInterface; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; private var combo:ComboBox; private var dp:DataProvider; private var butt:Button; public function Main():void { if (stage) init(); else addEventListener(Event.INIT, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point combo = new ComboBox(); combo.prompt = Select a webcam...; dp = new DataProvider(); var camList:Array = Camera.names; for (var i:int = 0; i camList.length; i++) { var camName:String = camList[i]; dp.addItemAt( { label:camName, data:String(i) }, i ); /*if (camName.indexOf(Google) -1) { var googleCam:Camera = Camera.getCamera(i.toString()) googleCam.setMode(400, 300, 30, false); var vid:Video = new Video(cam.width, cam.height); vid.attachCamera(googleCam); }*/ } addChild(combo); combo.x = 10; combo.y = 10; combo.width = 150; combo.dataProvider = dp; combo.addEventListener(Event.CHANGE, comboSelected); if (dp.length == 1) attachCamera(0); butt = new Button(); butt.y = combo.y; butt.x = combo.x + combo.width + 15; butt.label = Start Webcam; butt.width = 100; addChild(butt); } private function comboSelected(e:Event):void { butt.addEventListener(MouseEvent.CLICK, buttClicked); } private function buttClicked(e:MouseEvent):void { cam.removeEventListener(StatusEvent.STATUS, startcam); cam = null; removeChild(video); video = null; attachCamera(combo.selectedItem.data); } private function attachCamera(camIndex:String):void { cam = Camera.getCamera(camIndex); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); video.y = 50; video.x = 10; cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { if (ExternalInterface.available) ExternalInterface.call(alert, event.toString()); } } } On 19 September 2011 10:24, tom rhodes tom.rho...@gmail.com wrote: hey cedric if you've got code that you think 100% works on everything send it on and i'll put it up on the link. i thought that too :) after googling i've found stuff about looping through character names and attaching google cameras to video objects offstage, or pulling out the name for the usb cam on a mac if on mac OS, or even just using index 2 for the mac. all seem a bit hacky to me. this is somethign that has worked in flash fine for a LONG time, that now appears to be broken. what's up? 2011/9/19 Cédric Muller flashco...@benga.li Doesn't work for me, Mac, Safari 5.1 and Flash Player 10.3.181.14 Could you drop the 'if (stage) init' line ? (I am asking because I have plenty of webcam examples, and they do work) hth, Cedric hey all, i want to confirm that this...
Re: [Flashcoders] webcam wackiness...
anyone got any ideas why this script is failing on so many machines? 2011/9/19 Cédric Muller flashco...@benga.li yes, it works ok cheers for the testing, does the simple script work for you in a browser? 2011/9/19 Cédric Muller flashco...@benga.li I don't have GoogleTalk plugin, actually I am not Google wavy, so I have nothing 'Google' on my mac. I don't even have Chrome installed. Just tested in Safari and it didn't work. I do get the same 'camera.muted' status with Safari (no dialog, just a blank white screen) always living across the border, under the mountains :) but had a baby, a baby from the mountains ;) yeah started with basic code like that, you on a mac with googletalk plugin installed? i think it may have something to do with that. if you look at my code the actual attahcing of the camera is the same. on chrome 14 i get one Camera.muted from teh status event and then nothing. no dialog or anything. same behaviour being reported on macs (not got one here). just outside rome these days man, you across the border in the mountains still? 2011/9/19 Cédric Muller flashco...@benga.li hey ya tom! still does not work :( did you try the following overbasic code ? (works here) var video:Video = new Video(640, 480); var camera:Camera = Camera.getCamera(); camera.setMode(640, 480, 30); video.attachCamera(camera); addChild(video); hth, Cedric ps: still in Roma ? http://46.4.226.29/camtest/ updated to include a dropdown of all camera's on the system, and a button to kick them off with. right now, if it only finds one camera it will attempt to attach it, if it finds more than one it will wait for you to select which one you want to use and then click start webcam button. this fails for me in chrome v 14, and i'm told on a mac in any browser. source below... package { import fl.controls.Button; import fl.controls.ComboBox; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.StatusEvent; import flash.external.ExternalInterface; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; private var combo:ComboBox; private var dp:DataProvider; private var butt:Button; public function Main():void { if (stage) init(); else addEventListener(Event.INIT, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point combo = new ComboBox(); combo.prompt = Select a webcam...; dp = new DataProvider(); var camList:Array = Camera.names; for (var i:int = 0; i camList.length; i++) { var camName:String = camList[i]; dp.addItemAt( { label:camName, data:String(i) }, i ); /*if (camName.indexOf(Google) -1) { var googleCam:Camera = Camera.getCamera(i.toString()) googleCam.setMode(400, 300, 30, false); var vid:Video = new Video(cam.width, cam.height); vid.attachCamera(googleCam); }*/ } addChild(combo); combo.x = 10; combo.y = 10; combo.width = 150; combo.dataProvider = dp; combo.addEventListener(Event.CHANGE, comboSelected); if (dp.length == 1) attachCamera(0); butt = new Button(); butt.y = combo.y; butt.x = combo.x + combo.width + 15; butt.label = Start Webcam; butt.width = 100; addChild(butt); } private function comboSelected(e:Event):void { butt.addEventListener(MouseEvent.CLICK, buttClicked); } private function buttClicked(e:MouseEvent):void { cam.removeEventListener(StatusEvent.STATUS, startcam); cam = null; removeChild(video); video = null; attachCamera(combo.selectedItem.data); } private function attachCamera(camIndex:String):void { cam = Camera.getCamera(camIndex); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); video.y = 50; video.x = 10; cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { if (ExternalInterface.available) ExternalInterface.call(alert, event.toString()); } } } On 19 September 2011 10:24, tom rhodes tom.rho...@gmail.com wrote: hey cedric if you've got code that you think 100% works on everything send it on and i'll put it up on the link. i thought that too :) after googling i've found stuff about looping through character names and attaching google cameras to video objects offstage, or pulling out the name for the usb cam on a mac if on mac OS, or even just using index 2 for the mac. all seem a bit hacky to me. this is somethign that has worked in flash fine for a LONG time, that now appears to be broken. what's up? 2011/9/19 Cédric Muller
Re: [Flashcoders] webcam wackiness...
i want to confirm that this... http://46.4.226.29/camtest/ does not work on a mac, and in chrome 14 beta on the pc? It didn't work on my Mac (Lion, latest version of Chrome stable). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] webcam wackiness...
Dear Tom, I recently developing an AR apps and my clients also face the same problem. I asked them to update their flash player to 10.3.183.7 Check MAC flash player version by visiting the page - http://www.adobe.com/software/flash/about/ That solved the problem. The probable cause for the same may be due to latest OS upgrade and flash player upgrade. Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah ||http://www.manasamarthyadata.com/ *Think of the environment before printing this email __ * On Mon, Sep 19, 2011 at 4:34 AM, tom rhodes tom.rho...@gmail.com wrote: hey all, i want to confirm that this... http://46.4.226.29/camtest/ does not work on a mac, and in chrome 14 beta on the pc? massively simple webcam example, source below... code package { import flash.display.Sprite; import flash.events.Event; import flash.events.StatusEvent; import flash.media.Camera; import flash.media.Video; public class Main extends Sprite { private var cam:Camera; private var video:Video; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point cam = Camera.getCamera(); if (cam != null) { //cam.setMode(320, 240, 30, false); cam.setMode(400, 300, 30, false); video = new Video(cam.width, cam.height); video.attachCamera(cam); cam.addEventListener(StatusEvent.STATUS, startcam); addChild(video); } } private function startcam(event:StatusEvent):void { // stuff } } } /code i've NEVER experienced probs with webcam before, what is going on here? tom. ___ 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
Re: [Flashcoders] Webcam - Menu / Allow access not working
This is a known issue in certain environments. Search the adobe bugs to find more information about it On Tue, Jul 26, 2011 at 7:47 AM, Karim Beyrouti ka...@kurst.co.uk wrote: Hello Flashcoders, Well - the adobe settings panel to allow access to my webcam is not responding to mouse click - it shows up - and I can't click 'Allow' or 'Deny'. It just simple does not respond to keyboard or mouse events. Anyone seen this before / or know how to resolve this issue ? Chrome / OsX 10.7. Thanks Karim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ktu; The information contained in this message may or may not be privileged and/or confidential. If you are NOT the intended recipient, congratulations, you got mail! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] webcam issues
I am having a number of issues with the Camera class. Most seriously, it crashes the browser on some computers when I call getCamera() or Camera.names. It doesn't seem to be a browser issue as my simple test crashes both IE and FF on the same computers. Anyone know why this would happen? Does the computer have any Kensington peripherals? I've run into conflicts with camera use from Flash with those. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] webcam issues
No Kensington peripherals that I know of on either cpu here that crashes. It seems like a general problem with the Camera implementation in the Flash player but strangely I can't find any documentation of the issue on the web or in the Adobe bug db. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Watts Sent: Thursday, July 31, 2008 6:55 PM To: Flash Coders List Subject: RE: [Flashcoders] webcam issues I am having a number of issues with the Camera class. Most seriously, it crashes the browser on some computers when I call getCamera() or Camera.names. It doesn't seem to be a browser issue as my simple test crashes both IE and FF on the same computers. Anyone know why this would happen? Does the computer have any Kensington peripherals? I've run into conflicts with camera use from Flash with those. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ 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
Re: [Flashcoders] webcam video capture
thanks Bob and Jim! p On 6/15/07, Bob Wohl [EMAIL PROTECTED] wrote: anywhere outside that camera object (other than bitmap class like jim just posted) On 6/15/07, Bob Wohl [EMAIL PROTECTED] wrote: yes and no. You can do a camera.get but that will basicaly create a connection to your camera, no one else can see it just you. It is not only a few frames, it is live. it's also not accessible (images that is) to use anywhere outside that camera object. 'Capturing' it and saving to a source can only be done through FMS (server side FLV which I believe is not accessible outside of the server it's self). B. On 6/15/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hi all, is there a way to capture web cam video straight into flash...not a single frame, but a few seconds worth? thanks p ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] webcam video capture
[p e r c e p t i c o n] wrote: is there a way to capture web cam video straight into flash...not a single frame, but a few seconds worth? I'm assuming by straight into Flash you mean without recourse to a RTMP server such as Adobe's Flash Media Server or the open-source Red5 project as per the documented means. Assuming you're targetting Flash Player 8 or later, if all you want to do is capture bitmaps of the video feed across multiple frames, you can simply make bitmap copies of the video object displaying your local camera feed and save them to BitmapData instances on each frame (say, via an onEnterFrame handler in AS1/AS2 or the analogous enterFrame event if you're already using AS3). The only significant constraint you need to watch out for here is memory usage. Allocating and storing a bitmap in memory for each frame goes through RAM very quickly if you're storing more than a minute or two of video in this manner. While this works, it doesn't work nearly as well as saving to FLV via a server. Your frame rate may get choppy depending on the Flash Player and/or system performance and you're certainly not going to get sound this way. If you want the full monty, you'll need to go RTMP. Jim Cheng EffectiveUI ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] webcam video capture
yes and no. You can do a camera.get but that will basicaly create a connection to your camera, no one else can see it just you. It is not only a few frames, it is live. it's also not accessible (images that is) to use anywhere outside that camera object. 'Capturing' it and saving to a source can only be done through FMS (server side FLV which I believe is not accessible outside of the server it's self). B. On 6/15/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hi all, is there a way to capture web cam video straight into flash...not a single frame, but a few seconds worth? thanks p ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] webcam video capture
anywhere outside that camera object (other than bitmap class like jim just posted) On 6/15/07, Bob Wohl [EMAIL PROTECTED] wrote: yes and no. You can do a camera.get but that will basicaly create a connection to your camera, no one else can see it just you. It is not only a few frames, it is live. it's also not accessible (images that is) to use anywhere outside that camera object. 'Capturing' it and saving to a source can only be done through FMS (server side FLV which I believe is not accessible outside of the server it's self). B. On 6/15/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hi all, is there a way to capture web cam video straight into flash...not a single frame, but a few seconds worth? thanks p ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] webcam
I stumbled across this, yesterday - Although, the Camera Object is primarily for use with Macromedia Flash Communication Server MX, but, supposedly, it can be used with Macromedia Flash MX, as well. - It may be worth having a look at it. http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary119.html Michael Hood Internal Applications Dev ADMS/ CMS/ Armory [Original Message] From: Dennis Roche [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Date: 2/28/2007 4:20:02 PM Subject: Re: [Flashcoders] webcam is it possible to use to the web cam locally to capture a still?? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Webcam
Hi You need to put the video object inside a movieclip and draw that move clip Make sure the Video object in 640X480 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laurent CUCHET Sent: Tuesday, February 27, 2007 8:43 PM To: Flashcoders mailing list Subject: [Flashcoders] Webcam I try to create a screencopy of my webcam with a bitmap data but I always keep 160x120 for the resolution I specify a 640x480 but got always a small copy. Got an Idea ? Thanks, Laurent //actionscript import flash.display.BitmapData; localCamera = Camera.get();//camera use myCam.attachVideo(localCamera);//camera capture var bitmap = new flash.display.BitmapData(640, 480, true, 0x);//creation of the copy of the screen this.createEmptyMovieClip(copie, 2);//creation of an empty MC copie.attachBitmap(bitmap, 20, auto, true); bitmap.draw(myCam); ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] webcam
is it possible to use to the web cam locally to capture a still?? On 26/02/07, Amir T Rocker [EMAIL PROTECTED] wrote: Sure, but only local - means no one else can see you. // get the camera var cam = Camera.get( [opt. camName ] ) ; // attach the camera on the vid display videoPanel.attachCamera(cam) ; thats it - nowe you have a working camera - but no way to show it to others or record anything. For that you would need FCS / FMS. hope i could help. best regards Amir Rocker Am 09:45 AM 2/26/2007 schrieben Sie: Is there a way to have a webcam in a web site without flashcomm ? Thank you ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Go Dennis! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] webcam
Yes, with bitmapdata. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] webcam
Try wowzamedia.com! Amir T Rocker wrote: Sure, but only local - means no one else can see you. // get the camera var cam = Camera.get( [opt. camName ] ) ; // attach the camera on the vid display videoPanel.attachCamera(cam) ; thats it - nowe you have a working camera - but no way to show it to others or record anything. For that you would need FCS / FMS. hope i could help. best regards Amir Rocker Am 09:45 AM 2/26/2007 schrieben Sie: Is there a way to have a webcam in a web site without flashcomm ? Thank you ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] webcam
Im not sure but try checkout http://osflash.org/red5 I think it is possible :-) Hope this helps you Regards Morten Reinholdt http://www.flashorbit.com On Feb 26, 2007, at 9:45 AM, Laurent CUCHET wrote: Is there a way to have a webcam in a web site without flashcomm ? Thank you ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] webcam
Sure, but only local - means no one else can see you. // get the camera var cam = Camera.get( [opt. camName ] ) ; // attach the camera on the vid display videoPanel.attachCamera(cam) ; thats it - nowe you have a working camera - but no way to show it to others or record anything. For that you would need FCS / FMS. hope i could help. best regards Amir Rocker Am 09:45 AM 2/26/2007 schrieben Sie: Is there a way to have a webcam in a web site without flashcomm ? Thank you ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Webcam stream in Flash
hi ellen, did you check out red5? www.osflash.org/red5 have a good day On 9/21/06, Ellen Sundh [EMAIL PROTECTED] wrote: Hi! I am working with a project where we want to have a live webcam stream in Flash. The streaming company says it is very unstable to use Flash com server for a longer period of time. The web cam stream will be actiive for 3 months.. Are there any other aletrnatives.. Someone mentioned you can stream Windows Media Player in Flash but I am not sure how. Is it possible to put the WMP in an iframe on top of Flash or underneath? The project will be in Flash Player 8. Does anyone have any similar experience of a solution like this? Thanks in advance! -- Ellen Sundh Flash Developer Great Works . . . . . . . . . . . . Mobile: +46 73 200 40 73 Office: +46 8 528 077 76 Sveavägen 66 111 34 Stockholm /|_ ,' .\ ,--'_,' / / ( -. | | ) | (`-. '--.) `. )' Mjau.. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Webcam color tracking
Hey guyz, Thank you all for the replies. I've sorta hacked it... Before I do the getColorBoundsRect, I now do a threshold on the image to make the colors that are close to what my LED looks like, 100% red. I then do the getColorBoundsRect on the red and that works just fine. Now I'll try different colors of LEDs to see which works best and to make sure there's nothing else in the camera's eye that has the same color. It would indeed be great to see how Grant did his Mister Glove... But I'm guessing it's somewhere along the line of what I'm doing here... Grtz, Serge ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Webcam color tracking
At 8:51 AM +0200 9/13/06, dan wrote: Cheak out http://www.tipo.co.il/media/doritos/ I use color + motion traking to find hands and track them Has anyone tried any pattern/face reco routines in AS? I imagine it would be slow but maybe with small bitmaps it wouldn't be too bad (for fun and art, not for security ;-) --Roy -- - Studio Blog: http://www.roypardi.com/ Exhibit Announcements: http://www.roypardi.com/announce.htm Gandhi - Be the change you want to see in the world ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Webcam color tracking
Serge, Though I can not provide the source code, I have seen Grant Skinner demo an application that tracks LEDs. You can see it here: http://incomplet.gskinner.com/index2.html#mister In particular, at the link above select MISTER glove video. Grant explained the details. Perhaps others on this list recall details? g On 9/12/06, Serge Jespers [EMAIL PROTECTED] wrote: Well... I need to be able to track a LED light. I want to be able to track the position of the light to substitute a mouse... Serge ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Webcam color tracking
No, I still used getColourBoundsRect. It works OK until you get more than one object of the same colour - then you end up getting big rectangles which span the distance between the two, which is bad. You could *probably* get around this with some kind of quadtree-type algorithm, it's something I've been meaning to look into, and will probably be going back to soon. (As soon as I get five spare minutes...) Also - Grant Skinner claims to have solved the problem, but AFAIK, he's only posted videos, not working examples, so I don't know what approach he used. A On 12/09/06, Serge Jespers [EMAIL PROTECTED] wrote: Interesting... So you didn't use getColorBoundsRect? Did you 'walk through' all pixels then? Or how exactly do you search for the color? Serge Yeah, I've done some work with it. The trick is to apply some contrast filters to reduce the colour depth, and be a bit more picky about getting your source colour. You can do the getColourBoundsRect thing, but it's still pretty inaccurate though. Alias ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Webcam color tracking
Cheak out http://www.tipo.co.il/media/doritos/ I use color + motion traking to find hands and track them -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Serge Jespers Sent: Tuesday, September 12, 2006 10:22 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Webcam color tracking Well... I need to be able to track a LED light. I want to be able to track the position of the light to substitute a mouse... Serge depending on what you want to do, I've converted stuff to black and white (thank you keith peters) for easier tacking. Alias' suggestion is in the same vein of thought ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Webcam color tracking
So... euhm.. no one? Hey guys, I was wondering if anyone has already tried webcam color tracking inside Flash 8 or 9...? So not the difference motion tracking that you see everywhere but tracking one particular color. Or I should say range of colors... I started out with getColorBoundsRect but that doesn't seem to be accurate enough or I just picked the wrong color... So... 1) Has anyone done it before? And if so, do you have a source laying around that could get me on the right track? 2) How does one select the correct color? Thanks in advance for your massive replies ;-) Serge ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Webcam color tracking
http://www.adobe.com/devnet/flash/articles/webcam_motion.html On 9/12/06, Serge Jespers [EMAIL PROTECTED] wrote: So... euhm.. no one? Hey guys, I was wondering if anyone has already tried webcam color tracking inside Flash 8 or 9...? So not the difference motion tracking that you see everywhere but tracking one particular color. Or I should say range of colors... I started out with getColorBoundsRect but that doesn't seem to be accurate enough or I just picked the wrong color... So... 1) Has anyone done it before? And if so, do you have a source laying around that could get me on the right track? 2) How does one select the correct color? Thanks in advance for your massive replies ;-) Serge ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Webcam color tracking
Yeah, I've done some work with it. The trick is to apply some contrast filters to reduce the colour depth, and be a bit more picky about getting your source colour. You can do the getColourBoundsRect thing, but it's still pretty inaccurate though. Alias On 12/09/06, Serge Jespers [EMAIL PROTECTED] wrote: Hey guys, I was wondering if anyone has already tried webcam color tracking inside Flash 8 or 9...? So not the difference motion tracking that you see everywhere but tracking one particular color. Or I should say range of colors... I started out with getColorBoundsRect but that doesn't seem to be accurate enough or I just picked the wrong color... So... 1) Has anyone done it before? And if so, do you have a source laying around that could get me on the right track? 2) How does one select the correct color? Thanks in advance for your massive replies ;-) Serge ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Webcam color tracking
not the difference motion tracking that you see everywhere but tracking one particular color Thanks tho... http://www.adobe.com/devnet/flash/articles/webcam_motion.html ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Webcam color tracking
Interesting... So you didn't use getColorBoundsRect? Did you 'walk through' all pixels then? Or how exactly do you search for the color? Serge Yeah, I've done some work with it. The trick is to apply some contrast filters to reduce the colour depth, and be a bit more picky about getting your source colour. You can do the getColourBoundsRect thing, but it's still pretty inaccurate though. Alias ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Webcam color tracking
Well... I need to be able to track a LED light. I want to be able to track the position of the light to substitute a mouse... Serge depending on what you want to do, I've converted stuff to black and white (thank you keith peters) for easier tacking. Alias' suggestion is in the same vein of thought ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com