Hi, I was wondering how its possible to setup a server side playlist in
an applicatin using SimplePlayItem and have it rotate until a broadcast
connect becomes available ?
Here is some code form one of the examples, im trying to access the
application with no stream name and i assume im suppose to view the
playlist starting ? Im assuming setName("dan") will load an flv file
named dan.flv within the streams directory ? Will this require some
event callbacks to handle repeating the playlist or something ?
within appConnect
if (appScope == conn.getScope()) {
serverStream =
StreamUtils.createServerStream(appScope,
"live0");
SimplePlayItem item = new SimplePlayItem();
item.setStart(0);
item.setLength(10000);
item.setName("dan");
serverStream.addItem(item);
item = new SimplePlayItem();
item.setStart(20000);
item.setLength(10000);
item.setName("dan");
serverStream.addItem(item);
serverStream.start();
}
let me know thanks.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org