Skip to content

Conversation

@oliverlaz
Copy link
Member

@oliverlaz oliverlaz commented Nov 19, 2024

Overview

This is a hotfix for platforms that don't respect the ordered codec list(Firefox, Android, Linux, etc.).
We remove all the codecs from the SDP except the one we want to use. This is an opt-in feature hidden behind a toggle in the call's publish options.
To enable it:

call.updatePublishOptions({
  preferredCodec: 'vp9',
  forceSingleCodec: true,
});

@oliverlaz oliverlaz merged commit 894a86e into main Nov 21, 2024
18 checks passed
@oliverlaz oliverlaz deleted the force-single-preferred-codec branch November 21, 2024 14:43
oliverlaz added a commit that referenced this pull request Nov 22, 2024
Continuation of #1581. Reads the available codec info from the RTCRtpSender.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants