Trait gstreamer_rtsp_server::prelude::RTSPSessionMediaExt[][src]

pub trait RTSPSessionMediaExt: 'static {
    fn base_time(&self) -> ClockTime;
fn media(&self) -> Option<RTSPMedia>;
fn rtpinfo(&self) -> Option<GString>;
fn transport(&self, idx: u32) -> Option<RTSPStreamTransport>;
fn transports(&self) -> Vec<RTSPStreamTransport>;
fn matches(&self, path: &str) -> Option<i32>;
fn set_state(&self, state: State) -> Result<(), BoolError>; }

Trait containing all RTSPSessionMedia methods.

Implementors

crate::RTSPSessionMedia

Required methods

fn base_time(&self) -> ClockTime[src]

Get the base_time of the crate::RTSPMedia in self

Returns

the base_time of the media.

fn media(&self) -> Option<RTSPMedia>[src]

Get the crate::RTSPMedia that was used when constructing self

Returns

the crate::RTSPMedia of self. Remains valid as long as self is valid.

fn rtpinfo(&self) -> Option<GString>[src]

Retrieve the RTP-Info header string for all streams in self with configured transports.

Returns

The RTP-Info as a string or None when no RTP-Info could be generated, g_free() after usage.

fn transport(&self, idx: u32) -> Option<RTSPStreamTransport>[src]

Get a previously created crate::RTSPStreamTransport for the stream at idx.

idx

the stream index

Returns

a crate::RTSPStreamTransport that is valid until the session of self is unreffed.

fn transports(&self) -> Vec<RTSPStreamTransport>[src]

This is supported on crate feature v1_14 only.

Get a list of all available crate::RTSPStreamTransport in this session.

Returns

a list of crate::RTSPStreamTransport, g_ptr_array_unref () after usage.

fn matches(&self, path: &str) -> Option<i32>[src]

Check if the path of self matches path. It path matches, the amount of matched characters is returned in matched.

path

a path

matched

the amount of matched characters of path

Returns

true when path matches the path of self.

fn set_state(&self, state: State) -> Result<(), BoolError>[src]

Tell the media object self to change to state.

state

the new state

Returns

true on success.

Loading content...

Implementors

impl<O: IsA<RTSPSessionMedia>> RTSPSessionMediaExt for O[src]

fn base_time(&self) -> ClockTime[src]

fn media(&self) -> Option<RTSPMedia>[src]

fn rtpinfo(&self) -> Option<GString>[src]

fn transport(&self, idx: u32) -> Option<RTSPStreamTransport>[src]

fn transports(&self) -> Vec<RTSPStreamTransport>[src]

This is supported on crate feature v1_14 only.

fn matches(&self, path: &str) -> Option<i32>[src]

fn set_state(&self, state: State) -> Result<(), BoolError>[src]

Loading content...