Re: [webrtc-pc] receiver.getParameters().codecs seems under-specified. (#2956)

This turns out to be regression from https://github.com/w3c/webrtc-pc/pull/2935. Prior to that it said this in [sLD](https://www.w3.org/TR/2023/REC-webrtc-20230301/#set-local-description):

<img width="629" alt="image" src="https://github.com/w3c/webrtc-pc/assets/3136226/734e3de6-cdb3-4686-83e8-9d30a93eda58">

...and this in [create an RTCRtpTransceiver](https://www.w3.org/TR/2023/REC-webrtc-20230301/#dfn-create-an-rtcrtptransceiver):
<img width="779" alt="image" src="https://github.com/w3c/webrtc-pc/assets/3136226/caffc0d7-6abb-4c14-b3a6-0a9e53fd3ccc">

I.e. it starts out empty and is then populated based on negotiation (which may be non-empty or empty).

But with https://github.com/w3c/webrtc-pc/pull/2935 this got replaced with this in [sLD](https://w3c.github.io/webrtc-pc/#set-local-description):
<img width="634" alt="image" src="https://github.com/w3c/webrtc-pc/assets/3136226/6246dfd8-bdc3-4d8e-9325-1c46e8cff062">
...and this in  [create an RTCRtpTransceiver](https://w3c.github.io/webrtc-pc/#set-local-description):
<img width="784" alt="image" src="https://github.com/w3c/webrtc-pc/assets/3136226/386310b7-37b7-471e-ab74-b37e03a8101d">

I.e. it starts out being entirely implementation-defined whether it is empty or includes the full set or something in between , and then "enabled" is only ever set to true, never false.

This means it cannot possibly represent the (subset of) codecs that were negotiated, which seems broken.


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


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

Received on Tuesday, 23 April 2024 14:36:23 UTC