I'm just trying to setup a "TV like" application with a server-side playlist.
application.onAppStart = function(){
clientStream = Stream.get("clientPlayStream");
clientStream.play("vid1", 0, -1);
clientStream.play("teste", 0, -1, false);
clientStream.play("intro1", 0, -1, false);
clientStream.play("mp4vid2.mp4", 0, -1, false);
application.onStatus = function(info){
if(info.code=="NetStream.Play.Stop") {
trace("NetStream Stoped");
clientStream.play("vid1", 0, -1);
clientStream.play("teste", 0, -1, false);
clientStream.play("intro1", 0, -1, false);
clientStream.play("mp4:vid2.mp4", 0, -1, false);
}
}
}
application.onAppStop = function() {
trace("onAppStop Called, returning false");
return false;
}
The problem is that the aplication is unloaded after a certain time, and everything is disconnected at the middle of a stream. Then, on the client-side, if I do a "refresh" to the page where I have the player, the aplication is loaded and starts streaming from the begining.
I checked the flv and mp4 files and everything seems ok. Tryed to tune-up Application.xml, Server.xml, etc, but I find a lot of things there... I supose there is some tags that should be changed but after several trials I come always to point zero.
Thanks for your help.