Frequently Asked Questions

Media Constraints options for WebRTC Broadcasts

There are a number of audio and video properties that you can tweak for a WebRTC broadcast. These variables can override browser defaults, and should be set in the init config object on mediaConstraints:

mediaConstraints: {
 audio: { ... your config properties ... },
 video: { ... your config properties ... }
}

For example, you may want to override the browser default on autoGainControl or echoCancellation for audio. Most of the video options (frameRate, height, width) are included in our SDK documentation, but you may also want to specify an acceptable aspectRatio or resizeMode.

Please see https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/ for a full list of options and details about each.