A codec to prefer for a call. Entries of RTCRtpReceiver.getCapabilities('audio').codecs have this shape and can be passed as they are, whether your TypeScript DOM library types them as RTCRtpCodecCapability or as RTCRtpCodec.
RTCRtpReceiver.getCapabilities('audio').codecs
RTCRtpCodecCapability
RTCRtpCodec
Optional
The number of audio channels, when the codec reports one.
The codec's clock rate in hertz.
The codec's MIME type, for example audio/opus or audio/PCMA.
audio/opus
audio/PCMA
The codec's SDP a=fmtp parameters, when it has any.
a=fmtp
A codec to prefer for a call. Entries of
RTCRtpReceiver.getCapabilities('audio').codecshave this shape and can be passed as they are, whether your TypeScript DOM library types them asRTCRtpCodecCapabilityor asRTCRtpCodec.