Hi Luke, On 4/20/06, Luke Hubbard ([EMAIL PROTECTED]) <[EMAIL PROTECTED]> wrote: > > Hi Trustin, > > Whats the best way of delaying the speed of writes. With red5 we need to > slow down to the bitrate of the stream. Currently we stream as fast as the > client can take it which isnt ideal. We are planning to add some code > which > schedules a delay after we calculate the clients buffer is full. Is there > a > mina way to do this? Delayed writes? Im just wondering how best to > implement > this speed control.
The best way would be to create a dynamic timer thread(s) which writes each media frame in a right timing. The write operation is asynchronous, so it will not take much time so you will be able to stream all connections with fewer threads. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP key fingerprints: * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6
