It seems these also return -1 when a stream closes.
public long getOverallBandwidth()
{
return getChannelBandwidth()[IBandwidthConfigure.OVERALL_CHANNEL];
}
public long getInitialBandwidth()
{
return
getChannelInitialBurst()[IBandwidthConfigure.OVERALL_CHANNEL];
}
Dan Rossi wrote:
> Hi i was wondering how the bandwidth configurer is suppose to work, ie
> is it application wide or per connection ?
> public void setOverallBandwidth(long value)
> {
> getChannelBandwidth()[IBandwidthConfigure.OVERALL_CHANNEL] =
> value * 1024;
> }
>
> public void setInitialBandwidth(long value)
> {
> getChannelInitialBurst()[IBandwidthConfigure.OVERALL_CHANNEL] =
> value * 1024;
> }
>
> I have these but im not sure if they affect just the connection or the
> entire app. Im trying to set these on a per subscope basis. So
> connections so one sub scope is shaped different to another subscope.
> And for instance if the bandwidth does get shaped on the particular sub
> scope it will either stop further connections or just simply shape the
> streams.
>
> Let me know having to work out how to setup some config which gets
> loaded into a hashmap on app startup which can be called on room
> connections. Our current setup has bandwidth limits of 7MB per "sub
> scope" on a windows media server.
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org