Also does this work on just one connection or the entire app ? Prob need 
the shaping per subscope, as it would cause issues if it was for the 
entire webapp :\

Dan Rossi wrote:
> Dan Rossi wrote:
>   
>> Hi there, we are trying to port our current windows media streaming 
>> soluition over to red5. By default the publishing points or "rooms" we 
>> set for people have a limit setting on it set to 7000K. How  is this 
>> possible to be added on rooms in red5 and Im pretty sure windows media 
>> blocks further connections until the bandwidth reduces rather than just 
>> shaping the overall bandwdith.
>>
>>
>>   
>>     
>
> Ive setup a helper class to wrap these functions so its nicer to 
> implement, im not really sure if it works correctly, but im still trying 
> to work out what values i put in overall and initial settings to shape 
> traffic at 7000K. I also need the values configurable per sub scope 
> basis, is this easy to do, or do i need to hack some kind of properties 
> setting that has to be loaded per connection ? It seems if it set it to 
> anything less than 1024 it wont stream at all.
>
> BandwidthConfigure bwConfig = new BandwidthConfigure(conn);
> bwConfig.setOverallBandwidth(1024);
> bwConfig.setInitialBandwidth(128);
> bwConfig.start();
>
> public class BandwidthConfigure extends SimpleConnectionBWConfig {
>    
>     private IStreamCapableConnection streamConn;
>    
>     public BandwidthConfigure(IConnection conn)
>     {
>         if (conn instanceof IStreamCapableConnection) streamConn = 
> (IStreamCapableConnection) conn;
>     }
>    
>     public void setOverallBandwidth(long value)
>     {
>         getChannelBandwidth()[IBandwidthConfigure.OVERALL_CHANNEL] =
>             value * 1024;
>     }
>    
>     public void setInitialBandwidth(long value)
>     {
>         getChannelInitialBurst()[IBandwidthConfigure.OVERALL_CHANNEL] =
>             value * 1024;
>     }
>
>     public void start()
>     {
>         streamConn.setBandwidthConfigure(this);
>     }
> }
>
>
>
>
> _______________________________________________
> 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

Reply via email to