This content has been marked as final. Show 3 replies
I see indeed that the attachCamera is not a method included by the FLVPlayback class.
But how to get the local webcam stream then by using FLVPlayback?
Do I need using netConnection and netStream?
It sounds complicated ....
Yep you need to use the netConnection & netStream classes for it.
Well, I modified my code that way and dragged a FLVPlayback component from the library to the stage, I called it Live_vc
var nc:NetConnection=new NetConnection();
var ns:NetStream=new NetStream(nc);
var the_cam:Camera = Camera.getCamera();
It still doesn't work because attachNetStream is not a method of the FLVPlayback class as well as attachCamera.
How can I attach my NetStream object to my FLVPlayback component?