0 Replies Latest reply on Oct 14, 2009 1:56 PM by connect_pp

    Camera gets Deactivated after some time

    connect_pp

      I am publishing a live stream from web camera to FMS 3 and viewing it in a video player in Flex 3.

      The stream pauses automatically after few seconds. after addign soem eventlisteners i found that my camera gets deactivated automatically

      and DEACTIVATE event is triggered.

       

      why does my camera gets deactivated? are there any settings that i need to apply?

       

      my code:

       

       

       

       

      public

       

       

       

      public var ns:NetStream;

       

       

      public var cam:Camera;

       

      var nc:NetConnection;

       

       

      nc=

      new NetConnection();

      nc.connect(

      "rtmp://localhost/live");

       

      cam= Camera.getCamera();

      ns =

      new NetStream(nc);

       

      ns.attachCamera(cam);

      ns.publish(

      "myStream","live");