A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Flv stutters

  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    32

    Flv stutters

    Hello everyone!

    I have a problem with videos stuttering when viewing my website for the first time. My site hosts many videos so I cannot preload them all at once.

    I am thinking I need a code that assures that each video buffers for a few seconds as it plays.

    I am open to all suggestions.

    thanks in advance,
    Dennis

    PS

    Here is the code I use to upload the video:

    var vid:Video = new Video();
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var netStream:NetStream = new NetStream(nc);
    netStream.addEventListener(NetStatusEvent.NET_STAT US, ns_onPlayStatus);
    addChild(vid);
    vid.attachNetStream(netStream);
    netStream.play("main.flv");

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Well you could actually preload the video, or you could just set a buffer time:

    Code:
    netStream.bufferTime=10; //buffers 10 seconds

  3. #3
    Senior Member
    Join Date
    Jan 2009
    Posts
    208
    netStream.bufferTime

  4. #4
    Member
    Join Date
    Sep 2009
    Posts
    32

    video stutter

    Thank you. How do I preload the video? All the references I find when I google this subject refer to preloaders not preloading video.

    Thanks
    Dennis

  5. #5
    Senior Member
    Join Date
    Jan 2009
    Posts
    208
    There is no preloading here, you start downloading (playing) the video with netStream.play(url);
    You can listen for video end (NetStream.Play.Stop) if this means anything to you.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center