-
3DFA hobby scripter
flash webcam access
does anyone know how to get the video stream of a webcam into flash??
-
3DFA hobby scripter
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
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 ^^)
the rest is easy:
define the video object as a video.
Code:
var video_vobj:Video = new Video();
Make a camera object and get your webcam.
Code:
var cam:Camera = Camera.get();
Attach the camera to the video object.
Code:
video_vobj.attachVideo(cam);
---
but only the code:
Code:
var video_vobj:Video = new Video();
var cam:Camera = Camera.get();
video_vobj.attachVideo(cam);
without the "video object" doesn't work for me
-
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|