pub struct VideoCapability {
pub payload_type: u8,
pub codec_name: String,
pub clock_rate: u32,
pub fmtp: Option<String>,
pub rtcp_fbs: Vec<String>,
pub rtx_payload_type: Option<u8>,
}Fields§
§payload_type: u8§codec_name: String§clock_rate: u32§fmtp: Option<String>§rtcp_fbs: Vec<String>§rtx_payload_type: Option<u8>Associated RTX payload type (RFC 4588). When set, SDP offers include
a=rtpmap:<pt> rtx/<clock_rate> and a=fmtp:<pt> apt=<primary>.
Default None preserves single-codec SDP; answers still accept remote RTX.
Implementations§
Source§impl VideoCapability
impl VideoCapability
pub fn h264() -> Self
Sourcepub fn vp8_with_rtx(rtx_payload_type: u8) -> Self
pub fn vp8_with_rtx(rtx_payload_type: u8) -> Self
VP8 with RTX enabled (common browser interop profile).
Trait Implementations§
Source§impl Clone for VideoCapability
impl Clone for VideoCapability
Source§fn clone(&self) -> VideoCapability
fn clone(&self) -> VideoCapability
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 VideoCapability
impl Debug for VideoCapability
Source§impl Default for VideoCapability
impl Default for VideoCapability
Source§impl<'de> Deserialize<'de> for VideoCapability
impl<'de> Deserialize<'de> for VideoCapability
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VideoCapability
Source§impl PartialEq for VideoCapability
impl PartialEq for VideoCapability
Source§impl Serialize for VideoCapability
impl Serialize for VideoCapability
impl StructuralPartialEq for VideoCapability
Auto Trait Implementations§
impl Freeze for VideoCapability
impl RefUnwindSafe for VideoCapability
impl Send for VideoCapability
impl Sync for VideoCapability
impl Unpin for VideoCapability
impl UnsafeUnpin for VideoCapability
impl UnwindSafe for VideoCapability
Blanket Implementations§
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<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.