[Red5] Delayed NetStream.Pause.Notify events on slow connections
walter at waltertak.com
Fri Nov 30 04:43:35 PST 2007
> Thank you for advice very much, but there are some moments...
>> If your download is like 5 Kbytes/sec , a buffertime of 2 seconds and a
>> stream of 30 kbytes/sec then the client tries to download 2 x 30 kbytes =
>> Kbytes total which can
>> take 60 / 5 = 12 seconds.
>> If you pause the stream it might be possible that the notify comes 'after
>> kbytes of data' and guess what that takes 60 / 5 = 12 seconds at least.
> but when I pause the stream in SWF, the buffer flushes and the stream
> stops getting any data because it is paused. And 12 deconds is not
> such a big problem, but the delay is much more, it can be about 40
>> 1. do not stream too much to clients that cannot handle those streams
>> make lower-bandwidth streams available if the stream isn't live)
>> 2. lower the clientside buffertime
> I have discovered the the delay doesn't depend on bufferTime, it happens
> even if I set bufferTime = 0 or 0.1
>> 3. don't wait for a pause.notify but react on the button which enables
>> client to pause a stream
> You are right, the stream pauses instantly, but the problem is we
> can't unpause the stream until we get the notify about pause :((
> so when the user clicks resume he has to wait...
I'd install a few versions of Red5 and see if you can reproduce this
behaviour on all of them.
Some bugs have been fixed, or re-introduced between 0.6.2 , 0.6.3 and the
current (Trunk) version.
Just install them next to eachother in different directories, don't install
as a service on Windows (or init.d on *Nix) but start them
manually so you can switch between the versions 'on the fly'. Don't forget
to copy your application to all webapps or dist dirs.
I'd also install a bandwidth-monitor or traffic-shaper on the client so you
can watch in realtime the amount of bytes/sec coming to your system.
I use "Netlimiter" (http://www.netlimiter.com/ for Windows) , on *Nix
various networking tools are available. Without knowing how much your
client is download you can't say if a delay is a client-side of server-side
I am using the free version of SPAMfighter for private users.
It has removed 13760 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len
More information about the Red5