[Red5] Delayed NetStream.Pause.Notify events on slow connections
Walter Tak
walter at waltertak.com
Thu Nov 29 14:33:50 PST 2007
> PROBLEM:
> Only on slow internet conections, When I call ns.pause() in the SWF, the
> event with code NetStream.Pause.Notify for
> this NetStream comes with a very big delay (about 20 seconds delay).
>
> And during this delay all commands like ns.resume() etc are ignored
> (put in the queue? which is executed after we receive
> NetStream.Pause.Notify).
>
> So this NetStream "freezes" druring this delay in the SWF.
> BUT the server continue receiving events from the SWF, it executes
> streamPlaylistVODItemResume() and
> streamPlaylistVODItemPause() instantly when we call ns.resume() and
> ns.pause() in spite of event
> delays in the SWF.
>
> I tested this on the server stream file that requires about 30Kb/sec
> on client in
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.
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
3. don't wait for a pause.notify but react on the button which enables the
client to pause a stream
Regards,
Walter
--
I am using the free version of SPAMfighter for private users.
It has removed 13759 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
mailing list