pub enum RtpCodecParameters {
Audio {
mime_type: MimeTypeAudio,
payload_type: u8,
clock_rate: NonZeroU32,
channels: NonZeroU8,
parameters: RtpCodecParametersParameters,
rtcp_feedback: Vec<RtcpFeedback>,
},
Video {
mime_type: MimeTypeVideo,
payload_type: u8,
clock_rate: NonZeroU32,
parameters: RtpCodecParametersParameters,
rtcp_feedback: Vec<RtcpFeedback>,
},
}
Expand description
Provides information on codec settings within the RTP parameters. The list
of media codecs supported by mediasoup and their settings is defined in the
supported_rtp_capabilities.rs
file.
Variants§
Audio
Audio codec
Fields
mime_type: MimeTypeAudio
The codec MIME media type/subtype (e.g. audio/opus
).
clock_rate: NonZeroU32
Codec clock rate expressed in Hertz.
parameters: RtpCodecParametersParameters
Codec-specific parameters available for signaling. Some parameters (such as
packetization-mode
and profile-level-id
in H264 or profile-id
in VP9) are critical for
codec matching.
rtcp_feedback: Vec<RtcpFeedback>
Transport layer and codec-specific feedback messages for this codec.
Video
Video codec
Fields
mime_type: MimeTypeVideo
The codec MIME media type/subtype (e.g. video/VP8
).
clock_rate: NonZeroU32
Codec clock rate expressed in Hertz.
parameters: RtpCodecParametersParameters
Codec-specific parameters available for signaling. Some parameters (such as
packetization-mode
and profile-level-id
in H264 or profile-id
in VP9) are critical for
codec matching.
rtcp_feedback: Vec<RtcpFeedback>
Transport layer and codec-specific feedback messages for this codec.
Trait Implementations§
source§impl Clone for RtpCodecParameters
impl Clone for RtpCodecParameters
source§fn clone(&self) -> RtpCodecParameters
fn clone(&self) -> RtpCodecParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RtpCodecParameters
impl Debug for RtpCodecParameters
source§impl<'de> Deserialize<'de> for RtpCodecParameters
impl<'de> Deserialize<'de> for RtpCodecParameters
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Hash for RtpCodecParameters
impl Hash for RtpCodecParameters
source§impl Ord for RtpCodecParameters
impl Ord for RtpCodecParameters
source§fn cmp(&self, other: &RtpCodecParameters) -> Ordering
fn cmp(&self, other: &RtpCodecParameters) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for RtpCodecParameters
impl PartialEq for RtpCodecParameters
source§fn eq(&self, other: &RtpCodecParameters) -> bool
fn eq(&self, other: &RtpCodecParameters) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RtpCodecParameters
impl PartialOrd for RtpCodecParameters
source§fn partial_cmp(&self, other: &RtpCodecParameters) -> Option<Ordering>
fn partial_cmp(&self, other: &RtpCodecParameters) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more