Nomlad, If you want to restrict the duration of a specific stream for recording, you could implement the streamRecordStart() method from IStreamAwareScopeHandler. To achieve this, you just need to implements IStreamAwareScopeHandler in your Application class. The streamRecordStart() method will be called when the recording takes place (the first packet got from client). You might put the IBroadcastStream in a queue and call the IBroadcastStream.close() on timeout. Hope this helps.
On 4/17/07, nomIad <[EMAIL PROTECTED]> wrote:
Hey, come on There must be an answer to this problem ;-) indeed... i need it! nomIad schrieb: > Hi, > > Im actually working on a video guest book. So its a simple application > but it has a security issue. People can broadcast their videos without > limitations. > Sure, i limit it in the client, but thats not secure, because its easy > to write according clients (guestbooks have only minimal authentication). > So i cant restrict the size of the recorded video, so i have to restrict > the duration that can be maximal recorded. > The best way of doing this is serverside. So i onBroadcastStart i create > a new ScheduleOnceJob called StreamKillerJob. > The only arguments i have available at this time is the StreamService or > the BroadcastStream itself. > If i only use the stream itself, it wouldn't be unregistered (according > the sourcecode in StreamService). > But to unregister it with in the StreamService i need the Stream id. > > How can i access this Id in the onBroadcastStart? > > cu nomIad > > _______________________________________________ > Red5 mailing list > [email protected] > http://osflash.org/mailman/listinfo/red5_osflash.org > > _______________________________________________ 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
