Then the patch can not work since it is for VOD only ;(

On 3/22/07, Paweł Subocz <[EMAIL PROTECTED]> wrote:

joseph wamicha napisał(a):
> I am guessing you want to do so because the user clicks on a title and
> not the file?
>
> If so, you could send the title and file data down to the flash client
> in an array/list. The user can only see the title. When the user clicks
> on the title, use the selectedIndex to get the corresponding flash file
> that will be played by ns.play
>
> You are right, streamSubscriberStart()/streamSubscriberStop is broken
> the last I checked in changeset 1762;  the latest trunk should be 1769.

No. I want to disable choosing a file/stream name on server side. I'm
writing a webcam recorder, and I don't want to allow users view streams
recorded by other users.

The stream's playlist is cleaned somewhere between streamSubscriberStart
and streamPlaylistItemPlay.
I managed to handle this issue by putting my code into
streamPlaylistItemPlay.

if (stream.getCurrentItemIndex() == 0) {
    SimplePlayItem it = new SimplePlayItem();
    it.setName("stream_" + clientId);
    stream.addItem(it);

    stream.nextItem();
}

It's very ugly, but working as expected. Good enough for testing, but
I'll be very glad if someone point me the right direction ho to handle
this issue.


--
Bets regards
Pawel Subocz

Batman Sues Batsignal: Demands Trademark Royalties. - Cory Doctorow

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




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

Reply via email to