[][src]Enum mediasoup::rtp_parameters::RtpCodecParameters

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>,
    },
}

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

Fields of Audio

mime_type: MimeTypeAudio

The codec MIME media type/subtype (e.g. audio/opus).

payload_type: u8

The value that goes in the RTP Payload Type Field. Must be unique.

clock_rate: NonZeroU32

Codec clock rate expressed in Hertz.

channels: NonZeroU8

The number of channels supported (e.g. two for stereo). Default 1.

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

Fields of Video

mime_type: MimeTypeVideo

The codec MIME media type/subtype (e.g. video/VP8).

payload_type: u8

The value that goes in the RTP Payload Type Field. Must be unique.

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

impl Clone for RtpCodecParameters[src]

impl Debug for RtpCodecParameters[src]

impl<'de> Deserialize<'de> for RtpCodecParameters[src]

impl Eq for RtpCodecParameters[src]

impl Hash for RtpCodecParameters[src]

impl Ord for RtpCodecParameters[src]

impl PartialEq<RtpCodecParameters> for RtpCodecParameters[src]

impl PartialOrd<RtpCodecParameters> for RtpCodecParameters[src]

impl Serialize for RtpCodecParameters[src]

impl StructuralEq for RtpCodecParameters[src]

impl StructuralPartialEq for RtpCodecParameters[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,