[Red5] Stop recording on the server side after a certain duration.

dbs-other@cox.net dbs-other at cox.net
Thu Dec 21 13:47:23 EST 2006


Everyone,

  Does anyone have an example or could point the way on how to stop recording a stream from the server side.  Here is what currently happens:

1.)  The flash client starts a recording by doing ns.publish(vidname,"record");

2.)  I start a timer that waits for 30 seconds, and then if the stream has not already been stopped, it stops it by calling ns.publish(false).

  This is good for the most part, but someone could easily change the 30 seconds to 3000 seconds or remove it completely.  I've always learned that all important validation should be done server side.

  I would like to do something like:

1.)  The flash client starts a recording by doing ns.publish(vidname,"record");

2.)  The red5 server starts a timer or some equivalent and then mimics the client's ns.publish(false) on the server side of the stream.

  Any and all help is appreciated and I thank you all in advance.

David Sexton




More information about the Red5 mailing list