Skip to main content
Known Participant
January 8, 2013
Question

Set buffer time to zero

  • January 8, 2013
  • 1 reply
  • 851 views

Hi,

How can I set on the server and on the player (.swf) side not to keep buffer.I want to set buffer time to zero,so even if the internet connection lags not to keep buffer and when eshtablishes connection again to start without having kept any buffer.

It may result on lagy video but thats not a problem,i prefer having 2 sec lag than having best possible quality without lag.

    This topic has been closed for replies.

    1 reply

    January 9, 2013

    On the server, you can set the size of outgoing buffer in seconds using NetStream.setBufferTime(bufferTime).

    For more details about this class, you can check the link

    http://help.adobe.com/en_US/adobemediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11aff5ba-7d13SSASLR.2.3.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7f66SSASLR.2.3

    On the client side swf, you can do it using NetStream.bufferTime = 0. However, it is advisable not to set bufferTime to 0 for recorded streams. For more details, you can check the following link:

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html#bufferTime

    Known Participant
    January 9, 2013

    Thanks for your fast response!

    How do i set these parameters to the server and to the client?Is there any step by step guide?Or can you tell me with more details how to do it? Sorry but i'm new to the whole streaming proccess!

    I want to do this only for live stream and not for recorded!I'm performing rtmp streaming!

    Thanks again for the fast response and the help!