A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Flv Restart After Buffering

  1. #1
    Member
    Join Date
    Oct 2000
    Posts
    41

    Flv Restart After Buffering

    Hi,

    (Flash8 Pro)
    I have an instance of FLVplayback on the stage and i named it ClipA.
    I've set the buffering time in the component inspector to 5 seconds.
    Tested it on the web (progressive download).
    Works just fine.Buffers 5 seconds then plays.As soon as the connection can't keep up it pauses and buffers another 5 seconds and play from where it paused the last time.

    Is it possible to tell the instance to restart from the beginning after buffering every time?
    So the viewer see's the already buffered repeated from the start each time.

    Thanks

  2. #2
    Ninja Rider Jhonte's Avatar
    Join Date
    Sep 2004
    Location
    Uppsala,Sweden
    Posts
    253
    try this!

    Code:
    var videolistener:Object = new Object();
    videolistener.buffering = function(eventObject:Object) {
    	//buffering
    	video.seek(0);
            // video.play();   // ? maybe this one too.
    };
    where video is your flvplayback instance.

    good luck
    Show me the way to the next whiskeybar ...

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