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!