pub struct Codec {
pub payload_type: u8,
pub name: String,
pub clock_rate: u32,
pub encoding_parameters: String,
pub fmtp: String,
pub rtcp_feedback: Vec<String>,
}Expand description
One codec offered by a media section, assembled from its a=rtpmap, a=fmtp and
a=rtcp-fb attributes.
Fields§
§payload_type: u8The RTP payload type that identifies this codec in the stream.
name: StringThe encoding name, such as VP8 or opus.
clock_rate: u32The RTP clock rate in Hz.
encoding_parameters: StringCodec-specific encoding parameters — the channel count, for audio.
fmtp: StringThe a=fmtp format parameters, verbatim.
rtcp_feedback: Vec<String>The a=rtcp-fb feedback types negotiated for this codec, such as nack or goog-remb.
Trait Implementations§
impl Eq for Codec
impl StructuralPartialEq for Codec
Auto Trait Implementations§
impl Freeze for Codec
impl RefUnwindSafe for Codec
impl Send for Codec
impl Sync for Codec
impl Unpin for Codec
impl UnsafeUnpin for Codec
impl UnwindSafe for Codec
Blanket Implementations§
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
Mutably borrows from an owned value. Read more