Open henbos opened 2 years ago
Compare RTCCodecCapability with RTCCodecStats.
Also note that even without these two APIs, the codec information is in either way exposed the SDP (RTCPeerConnection.createOffer() and RTCPeerConnection.createAnswer()).
This makes this issue not just a stats issue, and we may consider moving it to webrtc-pc which is the source of all codec information.
This was previously discussed in #550.
The reason for creating a separate issue specifically for
codec
is that this information is already exposed inRTCRtpSender/RTCRtpReceiver.getCapabilities(kind).codecs
. Therefore it is likely that getCapabilities and getStats codecs will and should be resolved the same way and at the same time.