Re: [webrtc-pc] If a preferred codec is filtered out, does it still get assigned a PT? (#2938)

That errata makes sense to me.

Though we need to have `setCodecPreferences` not throw for send only codecs for this to work. I thought SCP only rejected if there was no recv codec in the list, but it currently throws if any codec is sendonly even if you have receive codecs in the list too.

> Let codecCapabilities be [RTCRtpReceiver](https://w3c.github.io/webrtc-pc/#dom-rtcrtpreceiver).[getCapabilities](https://w3c.github.io/webrtc-pc/#dom-rtcrtpreceiver-getcapabilities)(kind).[codecs](https://w3c.github.io/webrtc-pc/#dom-rtcrtpparameters-codecs).
> 
> For each codec in codecs,
>
> > If codec does [not match any codec](https://w3c.github.io/webrtc-pc/#dfn-codec-match) in codecCapabilities, throw [InvalidModificationError](https://webidl.spec.whatwg.org/#invalidmodificationerror).

-- 
GitHub Notification of comment by henbos
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2938#issuecomment-1941763033 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 13 February 2024 15:18:20 UTC