Skip to main content
September 20, 2010
Question

limit published stream length

  • September 20, 2010
  • 1 reply
  • 722 views

Hi all,

I want to limit server recorded netstream length to 10 secs at client side using as3. How can I do that?

Thanks in advance

-s

    This topic has been closed for replies.

    1 reply

    September 20, 2010

    Hi seanad1209,

    Since you mentioned that you want to achieve the limit on recorded stream only through client side AS3, I think you could start a timer for 10 secs and start publishing at that time, NetStream.publish("streamname", "record"). When the timer expires you can issue a command to stop the publish, NetStream.publish(false)

    It won't be very accurate, you might receive a recorded stream of aproximate length close to 10 secs.

    If you can use the server-side actionscript, then you can publish in live mode from client side and use the Stream.record("record",[maxDuration],[maxSize]). Or you could develop a custom authorization plug-in and deploy it on the FMS, where you would be limiting the size or duration of the recorded stream that you wish to obtain. But deploying the auth-plugin will apply these recording settings for the whole FMS irrespective of which you app you publish to.

    Regards

    Mamata

    September 20, 2010

    I was thinking there is an object's length/duration can be set for this. I'm using Red5 and I had a little timer doing this at the sever side. Haven't figured out though what caused myapp to stop.

    Thanks, although I hate timers. There are too wild.