pub struct MediaDescription {
pub media: String,
pub payload_type: u8,
pub encoding: Option<String>,
pub clock_rate: Option<u32>,
pub aac_size_length: Option<u8>,
pub aac_index_length: Option<u8>,
pub control: Option<String>,
}Available on crate features
ingest and rtsp only.Expand description
A parsed media description (m= line plus its attributes).
Fields§
§media: StringMedia kind: "video", "audio", …
payload_type: u8The first RTP payload type listed on the m= line.
encoding: Option<String>Encoding name from a=rtpmap (e.g. "H264"), if present.
clock_rate: Option<u32>RTP clock rate from a=rtpmap (90000 for H.264, the sample rate for AAC).
aac_size_length: Option<u8>a=fmtp AAC-hbr sizelength (bits of the AU-header size field), if given.
aac_index_length: Option<u8>a=fmtp AAC-hbr indexlength (bits of the AU-header index field), if given.
control: Option<String>a=control value used to build the SETUP URL.
Trait Implementations§
Source§impl Clone for MediaDescription
impl Clone for MediaDescription
Source§fn clone(&self) -> MediaDescription
fn clone(&self) -> MediaDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MediaDescription
impl Debug for MediaDescription
impl Eq for MediaDescription
Source§impl PartialEq for MediaDescription
impl PartialEq for MediaDescription
Source§fn eq(&self, other: &MediaDescription) -> bool
fn eq(&self, other: &MediaDescription) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MediaDescription
Auto Trait Implementations§
impl Freeze for MediaDescription
impl RefUnwindSafe for MediaDescription
impl Send for MediaDescription
impl Sync for MediaDescription
impl Unpin for MediaDescription
impl UnsafeUnpin for MediaDescription
impl UnwindSafe for MediaDescription
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