[Red5] Delayed NetStream.Pause.Notify events on slow connections
outfoxer at gmail.com
outfoxer at gmail.com
Thu Nov 29 23:30:41 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 = 60
> Kbytes total which can
> take 60 / 5 = 12 seconds.
> If you pause the stream it might be possible that the notify comes 'after 60
> 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
seconds...
> Solution:
> 1. do not stream too much to clients that cannot handle those streams (e.g.
> 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 the
> 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...
More information about the Red5
mailing list