[−][src]Struct janus_plugin::sdp::Sdp
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]
&self,
codec_name: &CStr,
profile: &CStr
) -> Option<i32>
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]
impl<'de> Deserialize<'de> for Sdp
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Drop for Sdp
[src]
impl Send for Sdp
[src]
impl Serialize for Sdp
[src]
Auto Trait Implementations
impl RefUnwindSafe for Sdp
[src]
impl !Sync for Sdp
[src]
impl Unpin for Sdp
[src]
impl UnwindSafe for Sdp
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,