A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Streaming multiple FLVs sequentially

Hybrid View

  1. #1
    Member
    Join Date
    Jan 2001
    Posts
    92

    Streaming multiple FLVs sequentially

    I have a series of six FLVs posted to a Flash Communication Server and I would like for them play sequentially in a continuous loop.

    I am using the following code from the Flash documentation:

    import mx.video.*;

    my_player.contentPath = "http://streamingserver/video01.flv";
    var listenerObject:Object = new Object();
    // listen for complete event; play new FLV
    listenerObject.complete = function(eventObject:Object):Void {
    if (my_player.contentPath == "http://http://streamingserver/video01.flv") {
    my_player.play("http://streamingserver/video02.flv");
    }
    };
    my_player.addEventListener("complete", listenerObject);

    This is just looping the first FLV over and over as if it is not seeing the complete event. Could anyone please advise me on the best way to appraoch this or if I am doing something wrong?

    Much thanks!

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Vermont
    Posts
    269
    if i remember correctly, you will need to update 'my_player.contentPath' to http://streamingserver/video02.flv before you play the next video

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