A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How tyo stop a streaming flv at teh end of the stream

  1. #1
    FK Photoshop Slut rugbystud's Avatar
    Join Date
    Jul 2000
    Location
    Too drunk to remember...
    Posts
    3,537

    How tyo stop a streaming flv at teh end of the stream

    Hi all.

    I have an swf that loads in an flv file. The video plays, but doesn't stop at the end. Have added a stop command at the end, but doesn't work Any help?

    Cheers!

  2. #2
    Senior Member
    Join Date
    Sep 2010
    Posts
    324
    Are you using the FLVPlayback component to play the video?
    If so, you can control autoplay and autorewind down in the Properties Panel, under the "Parameters" tab.
    If you are using NetStream to play the video, it will not loop unless you have set
    Code:
    ns.onStatus = function(info) {
    		if(info.code == "NetStream.Play.Stop") {
    ns.seek(0);
    ns.play();
    }
    }
    so just remove that part.
    Best wishes,
    Video Man

  3. #3
    FK Photoshop Slut rugbystud's Avatar
    Join Date
    Jul 2000
    Location
    Too drunk to remember...
    Posts
    3,537
    Yeah, got it. I just had to go to the component inspector and set autorewind to 'false'

    Cheers!

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