There is an option in Flash that allows users to capture the data coming from a web cam attached to the computer and broadcast it using Flash.
There is an option in Flash that allows users to capture the data coming from a web cam attached to the computer and broadcast it using Flash.
Is the Flash player smart enough to use 2 cameras at once? If I create 2 instances of a camera in the code (MyCam1 and MyCam2) could I then assign the Logitech cam to MyCam1 and the iSight to MyCam2?
saaweeeeet.
You have great tutorials. including the ones I’ve seen on Lynda.com
Thanks
[...] Tom Green – Using the Camera Object in Flash CS4 [...]
I actually did just think of a question though. After you set this up so it’s a live feed.. how would you actually put this on a hosting site such as dreamhost or oneandone.com so people could go directly to a webpage?
I don’t see where I can put in a video element. This is not something I can do with my CS3 at this time since I can not find the video element.
TypeError: Error #1006: attachCamera is not a function!
ok, another flash version. alright
Hello,
This is an excellent post. But I have a query, instead of using the webcam, is there any way to capture the screen of the swf file and allow the user to save it as an image.
This is a great bit of information. Love your vids but my question is one of real world application. Can it be used to stream video from say a home computer to others on the web. How would one add audio to this feed so that your mic is streamed as well. I have an old basic cam that doesn’t have a built in mic.
“So I’m going to show the code. Really complicated stuff, so sit back and pay close attention”
:O
“There you go, there’s the code. Two lines”
LOL
I just need help !
How do I get the Camera Object ?
Notice how he put the video object (right mouse click the library and new video-action script controlled) inside the movie clip and added the code inside the movie clip. The video object inside the movie clip had the instance name of myVid. That made it work.
I also get the error in the output box. When i grow beyond beginner, i should be able to figure out why its happening and how to fix it. As well as being able to broadcast it on a web page so everyone can see eachother.
Thank a lot “Kev Man” but I stil wonder How do he get the Camera Object in his library ?
I love this magazinee!!!!!!!!!!!!!
Here is the complete solution. May be helpful for beginners.i used the instance names from the tutorial to make it relevant.
1) Create an movie clip with name video.
2) Go to library you will see the movie clip there. just double click on movie clip(video) and get inside the movie clip
3) Add a video object here and name it video 1
4) drag the video 1 to the (you are still in side movie clip)
5) add a new layer and put the following code into new layer
import flash.media.Camera;
import flash.media.Video;
var myVid:Video = new Video();
var myCam:Camera = Camera.getCamera();
myVid.attachCamera(myCam);
addChild(myVid);
Thats it.