Struct webrtc::rtp_transceiver::rtp_codec::RTCRtpCodecParameters
source · pub struct RTCRtpCodecParameters {
pub capability: RTCRtpCodecCapability,
pub payload_type: PayloadType,
pub stats_id: String,
}
Expand description
RTPCodecParameters is a sequence containing the media codecs that an RtpSender will choose from, as well as entries for RTX, RED and FEC mechanisms. This also includes the PayloadType that has been negotiated https://w3c.github.io/webrtc-pc/#rtcrtpcodecparameters
Fields§
§capability: RTCRtpCodecCapability
§payload_type: PayloadType
§stats_id: String
Trait Implementations§
source§impl Clone for RTCRtpCodecParameters
impl Clone for RTCRtpCodecParameters
source§fn clone(&self) -> RTCRtpCodecParameters
fn clone(&self) -> RTCRtpCodecParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RTCRtpCodecParameters
impl Debug for RTCRtpCodecParameters
source§impl Default for RTCRtpCodecParameters
impl Default for RTCRtpCodecParameters
source§fn default() -> RTCRtpCodecParameters
fn default() -> RTCRtpCodecParameters
Returns the “default value” for a type. Read more
source§impl From<&RTCRtpCodecParameters> for CodecStats
impl From<&RTCRtpCodecParameters> for CodecStats
source§fn from(codec: &RTCRtpCodecParameters) -> Self
fn from(codec: &RTCRtpCodecParameters) -> Self
Converts to this type from the input type.
source§impl PartialEq<RTCRtpCodecParameters> for RTCRtpCodecParameters
impl PartialEq<RTCRtpCodecParameters> for RTCRtpCodecParameters
source§fn eq(&self, other: &RTCRtpCodecParameters) -> bool
fn eq(&self, other: &RTCRtpCodecParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.