Ok,now it works. I've moved the code from appConnect to connect method and I have modified the value of setOverallBandwidth in 32768*8.
Thanks for the help, Daniela Remogna ----- Original Message ----- From: Daniela Remogna To: [email protected] Sent: Friday, December 29, 2006 10:43 AM Subject: Re: [Red5] BandWidth Limit Steven Gong wrote: >Seems it is. :-) Good! But it doesn't work. this is the complete code: public boolean appConnect(IConnection conn, Object[] params) { measureBandwidth(conn); if (conn instanceof IStreamCapableConnection) { IStreamCapableConnection streamConn = (IStreamCapableConnection) conn; SimpleBandwidthConfigure sbc = new SimpleBandwidthConfigure(); sbc.setMaxBurst(8 * 1024 * 1024); sbc.setBurst(8 * 1024 * 1024); sbc.setOverallBandwidth((1024 * 1024)/32); streamConn.setBandwidthConfigure (sbc); } return super.appConnect(conn, params); } Did I forgot something? :) Daniela Remogna On 12/29/06, Daniela Remogna <[EMAIL PROTECTED]> wrote: Steven Gong wrote: >Naniela, >Have you tried to change the overallBandwidth settings to see if the value actually takes effect? Yes, I tried. Have you seen the code that I wrote? is it correct? sbc.setOverallBandwidth((1024 * 1024)/32); On 12/28/06, Daniela Remogna < [EMAIL PROTECTED]> wrote: Hi :-) Today my problem is to limit client bandwidth at 32 kb/sec (it's so low for testing). I wrote this code: public boolean appConnect(IConnection conn, Object[] params) { measureBandwidth(conn); if (conn instanceof IStreamCapableConnection) { IStreamCapableConnection streamConn = (IStreamCapableConnection) conn; SimpleBandwidthConfigure sbc = new SimpleBandwidthConfigure(); sbc.setMaxBurst(8 * 1024 * 1024); sbc.setBurst(8 * 1024 * 1024); sbc.setOverallBandwidth((1024 * 1024)/32); streamConn.setBandwidthConfigure (sbc); } return super.appConnect(conn, params); } but I continue to receive video at 300kb/sec.... what's wrong? Thanks in advance, Daniela Remogna _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org -- I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers. -- Tagore Best Regards Steven Gong ------------------------------------------------------------------------------ _______________________________________________ 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 -- I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers. -- Tagore Best Regards Steven Gong -------------------------------------------------------------------------------- _______________________________________________ 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
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
