1 Reply Latest reply on Apr 14, 2008 12:17 PM by Newsgroup_User

    Preload FLV for smoother playback

    jonbradley
      I'm using some FLVs in a project loading them in using the FLVPlayback component (not a streaming server or anything like that just referencing the file online). On certain connections the clips aren't playing very smoothly though - is there a way to just pause the playback for 5 seconds to give it a chance to load a bit more before it starts playing?

      Cheers.
        • 1. Re: Preload FLV for smoother playback
          Level 7
          On Thu, 20 Mar 2008 11:41:06 +0000 (UTC), "jonbradley"
          <webforumsuser@macromedia.com> wrote:

          >is there a way to just pause the playback for 5 seconds to give it a
          >chance to load a bit more before it starts playing?

          There is a special function in the NetStream class:

          var nc = new NetConnection;
          nc.connect(null);
          var ns = new NetStream(nc);
          ...
          ns.setBufferTime(5);
          ...