[Red5] Handle streams

Steven Gong steven.gong at gmail.com
Sun Sep 17 01:23:07 EDT 2006


Hi Tom,

On 9/17/06, Tom Krcha <tom at krcha.com> wrote:
>
>   Hi,
>
>
>
> How to handle stream events on server-side. E.g. onStreamStart,
> onStreamPause, onStreamStop
>
>
>
> That means: I need to setup listener for that, to implement streaming by
> hash.
>
>
>
> You call stream e.g. „YSDF4454GFG9D0OPW" and Red5 process this hash and
> send you e.g. myVideo.flv.
>
>
>
> So I need to SWICH STREAM, when it starts.
>
>
>
> Idea:
>
> (onStreamStart {streamName:"YSDF4454GFG9D0OPW"} -> process ->
> switchStream("myVideo.flv")
>

Try this though I don't guarantee it works because it hasn't been tested
yet. (So maybe you can help us to have a test. :-) )

Implement an IStreamAwareScopeHandler in your Application class. In
streamPlaylistItemPlay(), get the currently playing item by
getCurrentItemIndex(), getItem() to decide if it's the item of that hash
value and edit the play list by addItem() and then switch to this item by
nextItem() call. (NOTE it's available on r1355)

Any proposals, helps, etc…
>
>
>
> Thanks
>
>
>
> Tom
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20060917/518c7191/attachment.htm


More information about the Red5 mailing list