1 Reply Latest reply on May 2, 2009 8:30 PM by hawk_sap

    Video does not show up for ns.play("stream", start, len) when start > 0

    hawk_sap

      I am trying to play a flv file (served by a fms server) using NetStream.play("stream", start, len). It seems that if the first play() call has a non-zero "start" value, (i.e., start playing from the middle), the video does not show up. Does anyone know what happened? Thanks.

       

      Code snippet:

       

      var nc: NetConnection = new NetConnection();

      nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);

      nc.connect("rtmp://<fms_server>/live");

      // wait for connection success

       

      var ns: NetStream = new NetStream(ns);

      ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);

      ns.client = new CustomClient();

       

      var video: Video = new Video();

      video.attachNetStream(ns);

       

      ns.play("stream", 5, 10);   // video doesn't show up, audio plays