Re: [webrtc-pc] setCodecPreferences vs unidirectional codecs (#2888)

@fippo's fiddle gives me hope though, it shows that we support sending one codec and receiving another, and it does so using only `setCodecPreferences` (no SDP munging).

What is "weird" is that `setCodecPreferences` also affects what is on offer, but I think that is fine, because it is always the answerer's responsibility to update the preferences to affect what _they_ want to receive. Really the offer is just a suggestion (weirdly enough).

However I think we still have one problem, if I set `pc1` to only include VP8 in Fippo's fiddle, then the fiddle breaks: https://jsfiddle.net/henbos/snwcm35e/

I suspect the "bug" here is that we only include codecs that are in both offer and answer? Both send and receive? But if we take JSEP seriously, then there should be no problem to offer ONLY VP8 and answer ONLY VP9.

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


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

Received on Monday, 4 December 2023 12:30:33 UTC