-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds the support for simulcast: Simulcast is a way to let producers sent multiple version of the streams as different layers of quality. This allows the server to select the optimal layer based on the available bandwidth for each client. Two env variables are used to control this feature: `VIDEO_MAX_BITRATE`: Specifies the bitrate for the highest encoding layer per stream. It sets the `maxBitrate` property of the highest encoding of the `RTCRtpEncodingParameters` and is used to compute the bitrate attributed to the other layers. `MAX_BITRATE_OUT`: The maximum outgoing bitrate (=from the server) per session (meaning that this cap is shared between all the incoming streams for any given user). The appropriate simulcast layers used by each consumer will be selected to honor this limit. If the bitrate is still too high, packets will be dropped. Without this limit, the connections will use as much bandwidth as possible, which means that the simulcast layer will be chosen based on the client (or server) max available bandwidth.
- Loading branch information
1 parent
ce01356
commit 59a00a5
Showing
4 changed files
with
47 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters