[][src]Struct janus_plugin::sdp::Sdp

pub struct Sdp {
    pub ptr: *mut RawSdp,
}

An SDP session description.

Fields

ptr: *mut RawSdp

Implementations

impl Sdp[src]

pub unsafe fn new(ptr: *mut RawSdp) -> Option<Self>[src]

pub fn parse(offer: &CStr) -> Result<Self, SdpParseError>[src]

Parses an SDP offer string from a client into a structured SDP object.

pub fn get_payload_type(&self, codec_name: &CStr) -> Option<i32>[src]

Gets the payload type number for a codec in this SDP, or None if the codec isn't present.

pub fn get_payload_type_full(
    &self,
    codec_name: &CStr,
    profile: &CStr
) -> Option<i32>
[src]

Gets the payload type number for a codec and provided video profile in this SDP, or None if the codec isn't present with the provided video profile.

pub fn add_attribute(&mut self, pt: i32, name: &CStr, contents: &CStr)[src]

Adds an attribute for the m-line with the given payload type.

pub fn rewrite_payload_type(&mut self, from: i32, to: i32)[src]

Rewrites any references from one dynamically assigned payload type in this SDP to another dynamically assigned payload type.

pub fn get_mlines(&self) -> HashMap<MediaType, Vec<&mut RawMLine>>[src]

Returns a map of all the SDP media lines per SDP media type.

pub fn to_glibstring(&self) -> GLibString[src]

Writes this SDP into an owned C-style string.

Trait Implementations

impl Debug for Sdp[src]

impl Deref for Sdp[src]

type Target = RawSdp

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for Sdp[src]

impl Drop for Sdp[src]

impl Send for Sdp[src]

impl Serialize for Sdp[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.