3 Replies Latest reply on Feb 3, 2008 7:31 AM by ritpas

    Getting Camera from FLVPlayback component

    ritpas Level 1
      Hi,

      With the following 5 codelines, I manage to catch the local webcam stream :

      import flash.media.Camera;
      var the_cam:Camera = Camera.getCamera();
      var Live_vc:Video=new VideoPlayer();
      this.addChild(Live_vc);
      Live_vc.attachCamera(the_cam);

      It is working.

      The problem is that the video screen is simple, no buttons, I would like to get at least a stop button to stop the stream. I thought to drag and drop the FLVPlayback component to the stage, I called it Live_vc and modified my code to the following :

      import flash.media.Camera;
      var the_cam:Camera = Camera.getCamera();
      Live_vc.attachCamera(the_cam);

      I get an error message telling that FLVPlayback component doesn't accept attachCamera method.
      I don't understand why ...