BandWidth Limit

View: New views
8 Messages — Rating Filter:   Alert me  

BandWidth Limit

by Daniela Remogna :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: BandWidth Limit

by Steven Gong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Naniela,
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 :-)

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

Re: BandWidth Limit

by Daniela Remogna :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
 
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

Re: BandWidth Limit

by Steven Gong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.


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);

Seems it is. :-)

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

Re: BandWidth Limit

by Daniela Remogna :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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

Re: BandWidth Limit

by Daniela Remogna :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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 -----
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

Re: BandWidth Limit

by tamour :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@osflash.org
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@docebo.com> 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@docebo.com> 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@osflash.org
    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@osflash.org
  http://osflash.org/mailman/listinfo/red5_osflash.org



  _______________________________________________
  Red5 mailing list
  Red5@osflash.org
  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@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org



--------------------------------------------------------------------------------


_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: BandWidth Limit

by Walter Tak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You 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