Interface IPreferredCodec

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.

Hierarchy

  • IPreferredCodec

Properties

channels?: number

The number of audio channels, when the codec reports one.

clockRate: number

The codec's clock rate in hertz.

mimeType: string

The codec's MIME type, for example audio/opus or audio/PCMA.

sdpFmtpLine?: string

The codec's SDP a=fmtp parameters, when it has any.