Repository navigation
feat: add simulcast and per-layer encodings to the client API - #601
Merged
Merged
Conversation
Peer.addTrack(track, Simulcast) sends a video track in layers with rids of the caller's choice, and Sender.configure(rid, encoding) changes one layer.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Peers of the client API can send a video track in simulcast layers:
Peer.addTrack(track, Simulcast, streamIds...)sends a video track in two or three layers, each with its rid and encoding.Simulcast.standard()givesf,handqat full, half and quarter resolution.Sender.configure(rid, Encoding)changes one layer, for example to pause it, andSender.rids()lists the layers.Whip.simulcast(...)now builds onSimulcast, with unchanged behavior.Motivation and Context
SFUs such as LiveKit or Janus forward each receiver one layer of a simulcast track, and ask the sender to pause the layers that nobody watches. Until now only WHIP could send simulcast, and no layer could be changed on its own.
Type of Change
feat)Affected Modules
webrtc(Java API)docs