does anyone know how to get the video stream of a webcam into flash??
Printable View
does anyone know how to get the video stream of a webcam into flash??
I found a tutorial for Adobe Flash:
http://uploads.ungrounded.net/364000...utorial_ng.swf
but get I stuck at the beginning:
1. Get your webcam on the screen
the rest is easy:Quote:
Create a layer 'video_obj'. => ok
put in the layer a video object: Library (top-left) > New Video...=> hmm (no ideo how to do that ^^)
---Quote:
define the video object as a video.
Make a camera object and get your webcam.Code:var video_vobj:Video = new Video();
Attach the camera to the video object.Code:var cam:Camera = Camera.get();
Code:video_vobj.attachVideo(cam);
but only the code:
without the "video object" doesn't work for me :(Code:var video_vobj:Video = new Video();
var cam:Camera = Camera.get();
video_vobj.attachVideo(cam);
His code didn't work for me either. Here is a simple one line of code that DOES work:
video_vobj.attachVideo(Camera.get());
Where video_vobj is the name of the instance of the video on stage.