I need to record a video stream from a web cam through my browser.
Please see below for a code snippet to accomplish this.
var video:Video;
var camera:Camera = Camera.getCamera();
camera.addEventListener(ActivityEvent.ACTIVITY, active);
video = new Video();
video.attachCamera(camera);
function active(event:Event):void
{
addChild(video);
camera.removeEventListener(ActivityEvent.ACTIVITY, active);
}
Not sure if that is what you meant? Further details and explanation in the reference manual:
+