Hi Tom,
I have just committed the default settings to SimplePlayItem so that the default start is "-2" and default length is "-1", which may fit your request.

And the SimplePlaylistController now supports "repeat" and "rewind". To implement your own IPlaylistController is very simple actually. Referring to the javadoc of IPlaylistController and SimplePlaylistController, you can add more features like "random" to your playlist control.

On 9/11/06, Tom Krcha <[EMAIL PROTECTED]> wrote:

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





--
I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers.  -- Tagore

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

Reply via email to