Hi Tom,

On 9/17/06, Tom Krcha <[EMAIL PROTECTED] > 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
[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