Hi,

 

Does anybody solved already the issue with serverside playlist?

 

Like: I have a 10 files, I want client to subscribe to it.

 

But I am quite annoyed by this part:

 

item.setStart(miliseconds);

item.setLength(miliseconds);

 

this is whole example:

 

IServerStream serverStream = StreamUtils.createServerStream(scope, "mylivebroadcast");

        

            SimplePlayItem item = new SimplePlayItem();

           

            item.setStart(0);

            item.setLength(5000);

            item.setName("firstmovie");

            serverStream.addItem(item);

           

            item = new SimplePlayItem();

            System.out.println(item.getLength());

            item.setStart(5000);

            item.setLength(5000);

            item.setName("secondmovie");

           

            serverStream.addItem(item);

            serverStream.setRepeat(true);

            serverStream.start();

 

The question is:

How to omit setStart and setLength?

 

That it will look like this:

 

item = new SimplePlayItem();

            item.setName("firstmovie");

            serverStream.addItem(item);

           

            item = new SimplePlayItem();

            item.setName("secondmovie");

            serverStream.addItem(item);

 

            serverStream.setRepeat(true);

            serverStream.start();

 

When first movie finishes, second will start automatically.

I don’t want to count length always.

You know what I mean.

 

Thanks

 

Tom

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to