pub struct RTCCodecStats {
pub stats: RTCStats,
pub payload_type: PayloadType,
pub mime_type: String,
pub channels: u16,
pub clock_rate: u32,
pub sdp_fmtp_line: String,
}Expand description
Statistics for a codec used in an RTP stream.
This struct corresponds to the RTCCodecStats dictionary in the
W3C WebRTC Statistics API. It provides information about codecs
currently in use for sending or receiving RTP streams.
Codec stats are only present when the codec is actively used by at least one RTP stream.
§W3C Reference
See RTCCodecStats
Fields§
§stats: RTCStatsBase statistics fields (timestamp, type, id).
payload_type: PayloadTypeThe RTP payload type for this codec.
This is the numeric payload type used in RTP packets.
mime_type: StringThe MIME type of the codec.
Examples: “video/VP8”, “video/H264”, “audio/opus”.
channels: u16The number of audio channels for audio codecs.
For video codecs, this is 0.
clock_rate: u32The codec clock rate in Hz.
For audio, this is typically 48000 (Opus) or 8000 (G.711). For video, this is typically 90000.
sdp_fmtp_line: StringThe SDP format-specific parameters line (fmtp).
This contains codec-specific configuration from the SDP. For example, H.264 profile-level-id or Opus parameters.
Trait Implementations§
Source§impl Debug for RTCCodecStats
impl Debug for RTCCodecStats
Source§impl<'de> Deserialize<'de> for RTCCodecStats
impl<'de> Deserialize<'de> for RTCCodecStats
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>,
Auto Trait Implementations§
impl Freeze for RTCCodecStats
impl RefUnwindSafe for RTCCodecStats
impl Send for RTCCodecStats
impl Sync for RTCCodecStats
impl Unpin for RTCCodecStats
impl UnsafeUnpin for RTCCodecStats
impl UnwindSafe for RTCCodecStats
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.