Skip to end of metadata
Go to start of metadata


For optimal pucture quality with available channel bandwith video bitrate should be managed while capturing WebRTC stream in browser. WCS server allows to limit minimum and maximum video bitrate for stream published. Audio bitrate is not managed.

Platforms and browsers supported



Safari 11






Mac OS












The following WCS settings are intended to limit publishing bitrate:

On browser side (JavaScript)On server side (
Minimum bitrate
Maximum bitrate

On browser side, bitrate limits are set in kilobits per second, for example

and on server side limits are set in bytes per second


If the limits are set on both sides, browser settings take precedence over server settings.

If browser settings are not defined, server settings are applied,

If none of limits are set, default settings are applied


These settings work in most modern browsers and define the REMB bitrate management limits.

How it works

If maxBitrate is set, WCS server will send REMB command to decrease bitrate when this limit is reached.
If minBitrate is set, WCS server will stop sending REMB command to decrease bitrate when this limit is reached.
Therefore, the settings define 3 ranges with its own bitrate management algorithm:

1[0, minBitrate]

WCS stops bitrate management and not send any REMB commands

2[minBitrate, maxBitrate]

WCS server makes active bitrate management: depending on jitter and incoming traffic uniformity WCS decides to send REMB commands to decrease bitrate. If channel is good, WCS does nothing and bitrate is not decreasing

3[maxBitrate, ...] 

WCS constantly sends bitrate decrease commands until it reduce to maxBitrate

How to enforce bitrate increasing

Now, bitrate increasing can be enforced in Chrome browser only by setting x-google-max-bitrate and  x-google-min-bitrate parameters via SDP hook.
It is impossible to enforce bitrate rising with client and server settings, only bitrate decreasing can be managed.
In this case, Chrome specific settings take precedence if they are set, i.e. constraints and server settings will be ignored. Note that Chrome default settings found by experience is



Bitrate limiting in certain borders can be useful for example when publishing video to Safari browser subscribers. This browser is sensitive to bitrate jumps, in this case picture quality loses until freeze and browser hangs. It is recommended to stabilize bitrate when publishing streams for Safari viewers by setting narrow limits of bitrate change, for example

In this case picture quality in Safari browser will be acceptable depending on channel bandwith and state.

Bitrate rising needs to be enforced when publishsing HD and 4K streams. In this case, Chrome browser is recommended for publishing.

  • No labels