On 7/24/06, Tom Krcha <[EMAIL PROTECTED]> wrote:

Hi,

 

So I made it like this:

 

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

           

            SimplePlayItem item = new SimplePlayItem();

            item.setStart(0);

            item.setLength(286000);

            item.setName("one" );

            serverStream.addItem( item);

            item = new SimplePlayItem();

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

            item.setStart(286000);

            item.setLength(275000);

            item.setName("two" );

            serverStream.addItem( item);

            serverStream.setRepeat( true);

            serverStream.start();

 

It works, but it's very slow – CPU is OK, Memory is OK (that means I have still enough more), but it's haggling (cutting) – like low FPS.


ServerSideStream is quite experimental. It's a known bug.

I am using branch 0.5RC1.

 

Another question is about this:

item.setStart(286000);

item.setLength(275000);

 

Is it possible to make it somehow automatically? Not to enter those values.


You may make it automatic in your application.

And the final question is – how to make LOOP. That means, when the last stream finishes, the first one begins.


You may define your own IPlaylistController. Just implement this interface referring to the javadoc in that interface. And use ServerSideStream.setPlaylistController (yourCustomController) to register your playlist controller.

Thank you for any suggestion

 

Tom

 

 


From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Tom Krcha
Sent: Sunday, July 23, 2006 7:08 PM
To: [email protected]
Subject: [Red5] Creating TV

 

Hi devs,

 

Is it already possible to handle streams? So you can create one live stream, which is created from „n" flvs?

 

User connects to server and see one stream, which in same possition for every subscriber – same system like TV.

 

Thanks a lot

 

Tom

 

PS: tutorial in Migration guide would be best – thanks Joachim


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





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

Reply via email to