|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
BandWidth LimitHi :-)
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 Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: BandWidth LimitNaniela,
Have you tried to change the overallBandwidth settings to see if the value actually takes effect? On 12/28/06, Daniela Remogna <daniela@...> wrote:
Hi :-) -- 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 Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: BandWidth LimitSteven 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 <daniela@...>
wrote:
Hi :-) -- 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 Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org _______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: BandWidth LimitOn 12/29/06, Daniela Remogna <daniela@...> wrote:
Seems it is. :-)
-- 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 Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: BandWidth LimitSteven 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 <daniela@...>
wrote:
-- 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 Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org _______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: BandWidth LimitOk,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@...
To: Red5@...
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 <daniela@...>
wrote:
-- 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 Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org _______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: BandWidth Limitwhich version of red5 are you using ?
I am unable to use the setMaxBurst(*), setBurst(*), setOverallBandwidth() methods.
|
|
|
Re: BandWidth LimitYou just replied to a 3 year old message.
----- Original Message ----- From: "tamour" <tamourahmad@...> To: <Red5@...> Sent: Wednesday, 11 November 2009 17:02 Subject: Re: [Red5] BandWidth Limit > > which version of red5 are you using ? > I am unable to use the setMaxBurst(*), setBurst(*), setOverallBandwidth() > methods. > > > Daniela Remogna wrote: >> >> 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: Red5@... >> 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 <daniela@...> 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 < daniela@...> 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 >> Red5@... >> 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 >> Red5@... >> http://osflash.org/mailman/listinfo/red5_osflash.org >> >> >> >> _______________________________________________ >> Red5 mailing list >> Red5@... >> 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 >> Red5@... >> http://osflash.org/mailman/listinfo/red5_osflash.org >> >> >> >> -------------------------------------------------------------------------------- >> >> >> _______________________________________________ >> Red5 mailing list >> Red5@... >> http://osflash.org/mailman/listinfo/red5_osflash.org >> >> _______________________________________________ >> Red5 mailing list >> Red5@... >> http://osflash.org/mailman/listinfo/red5_osflash.org >> >> > > -- > View this message in context: > http://old.nabble.com/BandWidth-Limit-tp8076110p26303331.html > Sent from the Red5 - English mailing list archive at Nabble.com. > > > _______________________________________________ > Red5 mailing list > Red5@... > http://osflash.org/mailman/listinfo/red5_osflash.org > _______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
| Free embeddable forum powered by Nabble | Forum Help |