where use setMaxOutgoingBitrate?


I am trying to test using setMaxOutgoingBitrate method in weak network
However, the result is as follows.

mediasoup version: 3.10.12
producer : 3Mbps video
consumer : max outgoing bitrate 1Mbps
but, consumer received bytes 3Mbps and video play is well

TransportCongestionControlClient usable

mediasoup:Channel [pid:1772781] RTC::Transport::HandleRequest() | enabling TransportCongestionControlClient with transport-cc

transport bwe log is here.

  direction: 'out',
  info: {
    availableBitrate: 30000,
    desiredBitrate: 3000000,
    effectiveDesiredBitrate: 3000000,
    maxBitrate: 1000000,
    maxPaddingBitrate: 850000,
    minBitrate: 30000,
    startBitrate: 30000,
    type: 'transport-cc'
  timestamp: 1509864294,
  type: 'bwe'

I was expected traffic is down, but not.

As I use this, what results can I get?

There’s incoming and outgoing rates; you would generally set them equal. For Audio it doesn’t matter. The results are up to you and expected clarity. 200,000 - 500,000 is VERY generous, you can offer higher but that multiplied is extensive on many networks.

I know 1Mbps is big size.
But, My testcase is 10 people participated. ( video / audio about 300Kbps )
This is a test that simulates when one consumer network bandwidth is low.
In this case, I’m trying to figure out how to respond technically.

You don’t respond, the thing is if the user drops to low in bitrate whether you had SVC/Simulcast that would congest the network of the user and in this situation where they’re trying to catch up and their network is driving at 100% they would eventually fail to ping server and timeout.

Ping is about 1-2KB response so if they’re lagging and can’t ping, not your issue it’s them but do always make sure your server network is of quality not just in Canada or USA, but every HOP in the trace route must be near perfect.