[Red5] Controlling the bandwidth of published streams
d.negrier at thecodingmachine.com
Fri Oct 3 03:03:25 PDT 2008
First of all, a big thanks to all the Red5 team for their incredible
work (and the upcoming v0.8).
I've been successfully developping some apps with Red5, and everything
seems to work great so far.
I'm now playing with security features, and I would like to limit the
bandwidth of an upload stream (a stream published through a webcam).
Basically, I would like my application to reject any stream that is
published at a bitrate higher than 300kb/s.
I first thought I might do that with the
But the codec information is not sent so this is obviously not the right
place to do this.
Then, I thought I might use the "Bandwidth Control Framework" to limit
the upload bandwidth.
I read this wiki page:
After testing a few things, it seems that the "Bandwidth Control
Framework" can limit the speed of downstream connections, but not the
speed of upstream connections (there is no "setBandwidthConfigure"
method on a IBroadcastStream). I thought I could limit the upstream for
the whole connection instead of limiting a particular stream since the
article refers to a IConnectionBWConfig.upstreamBandwidth but it seems
not to exist right now.
Is there any way to limit the bandwidth for a published stream in the
current version of Red5? (I'm using a snapshot of Red5 that is 3 months old)
More information about the Red5