Skip to content

Conversation

@hamishwillee
Copy link
Contributor

FF142 adds support for the dictionary property RTCRtpEncodingParameters.codec in https://bugzilla.mozilla.org/show_bug.cgi?id=1894137

This is used when setting encodings in RTCRtpSender.setParameters(parameter.encodings) and RTCPeerConnection.addTransceiver(sendencodings), and returned in RTCRtpSender/getParameters() (encodings.codec).

This updates the setParameters() - encodings - subfeature on the sender. The getParameters() and RTCPeerConnection.addTransceiver features don't go down to the same level - my assumption is that you don't want to record this because it would likely always duplicate.

The version values for chrome and safari were found by running https://wpt.live/webrtc/RTCRtpParameters-codec.html on browserstack.

Related docs work can be tracked in mdn/content#40477

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed labels Aug 5, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Hamish! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants