Next Page

Page: 1

Previous Page

Thread: Server-side playlists streaming duration

Created on: 03/07/10 08:26 AM

Replies: 2

kol





Joined: 03/07/10

Posts: 2

Server-side playlists streaming duration
03/07/10 8:26 AM

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.

Link | Top | Bottom

kol





Joined: 03/07/10

Posts: 2

RE: Server-side playlists streaming duration
03/07/10 8:31 AM

Sorry for the message formatting... And "clientStream.play("mp4vid2.mp4", 0, -1, false);" is a typo.

Link | Top | Bottom

Graeme



Graeme's Gravatar

Joined: 10/18/07

Posts: 1114

RE: Server-side playlists streaming duration
03/08/10 9:21 AM

It's the core rollover time. Search around for that a bit and it should help.

Link | Top | Bottom

New Post

Please login to post a response.