diff --git a/webrtc.html b/webrtc.html index f3cde540a..0848f1cc5 100644 --- a/webrtc.html +++ b/webrtc.html @@ -2821,8 +2821,11 @@
If codecs is not an empty list:
Remove any codec value in transceiver.{{RTCRtpTransceiver/[[Sender]]}}.{{RTCRtpSender/[[SendEncodings]]}} - that does not [= codec dictionary match | match =] any entry in codecs.
+For each encoding in + transceiver.{{RTCRtpTransceiver/[[Sender]]}}.{{RTCRtpSender/[[SendEncodings]]}}, + if encoding.{{RTCRtpEncodingParameters/codec}} does not + [= codec dictionary match | match =] any entry in codecs, + [=map/remove=] encoding[{{RTCRtpEncodingParameters/codec}}].
- If any codec parameter in sendEncodings does
+ If any encoding [=map/contains=] a
+ {{RTCRtpEncodingParameters/codec}} member whose value does
[= codec dictionary match | not match =] any codec in {{RTCRtpSender.getCapabilities(kind)}}.codecs
,
[= exception/throw =] an {{OperationError}}.