stf,
I think you'd better add the live stream when it's been published. To
achieve that, you can put the serverStream.addItem() call in
streamPublishStart() callback from IStreamAwareScopeHandler. This interface
can be implemented by your Application class.

On 5/3/07, Stanislaw Fiedor <[EMAIL PROTECTED]> wrote:

Hi!
I need to add a live stream (that is not being recorded) to a playlist on
the server-side - but there is a problem with it..
When it comes  to prerecorded streams there is no problem when I do it
like
that:

   serverStream = StreamUtils.createServerStream(appScope, "live0");
   SimplePlayItem item = new SimplePlayItem();
   item.setStart(0);
   item.setLength(10000);
   item.setName("on2_flash8_w_audio");
   serverStream.addItem(item);
    .......
   item = new SimplePlayItem();
   item.setStart(20000);
   item.setLength(10000);
   item.setName("on2_flash8_w_audio");
   serverStream.addItem(item);
   serverStream.start();

But if I try to add a live stream:

    item = new SimplePlayItem();
   //item.setStart(20000);
   //item.setLength(10000);
   item.setName
("the_name_of_the_live_stream_which_is_the_same_as_the_publish_name_of_the_stream");
   serverStream.addItem(item);

Then red5 can't find the stream and doesn't add it to the playlist.

But if i publish the live stream and record it then it works.

Of course I would like to add the stream also when it's not being
recorded.

So if you know how to manage it I would be very thankful for your help.
(It is very urgent :/)

Best Regards
stf



_______________________________________________
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