[][src]Trait gstreamer_rtsp_server::prelude::RTSPStreamTransportExt

pub trait RTSPStreamTransportExt: 'static {
    fn get_rtpinfo(&self, start_time: ClockTime) -> Option<GString>;
fn get_stream(&self) -> Option<RTSPStream>;
fn get_url(&self) -> Option<RTSPUrl>;
fn is_timed_out(&self) -> bool;
fn keep_alive(&self);
fn message_sent(&self);
fn send_rtcp(&self, buffer: &Buffer) -> Result<(), BoolError>;
fn send_rtp(&self, buffer: &Buffer) -> Result<(), BoolError>;
fn set_active(&self, active: bool) -> Result<(), BoolError>;
fn set_keepalive<P: Fn() + 'static>(&self, keep_alive: P);
fn set_message_sent<P: Fn() + 'static>(&self, message_sent: P);
fn set_message_sent_full<P: Fn(&RTSPStreamTransport) + 'static>(
        &self,
        message_sent: P
    );
fn set_timed_out(&self, timedout: bool);
fn set_url(&self, url: Option<&RTSPUrl>); }

Trait containing all RTSPStreamTransport methods.

Implementors

RTSPStreamTransport

Required methods

fn get_rtpinfo(&self, start_time: ClockTime) -> Option<GString>

Get the RTP-Info string for self and start_time.

start_time

a star time

Returns

the RTPInfo string for self and start_time or None when the RTP-Info could not be determined. g_free after usage.

fn get_stream(&self) -> Option<RTSPStream>

Get the RTSPStream used when constructing self.

Returns

the stream used when constructing self.

fn get_url(&self) -> Option<RTSPUrl>

Get the url configured in self.

Returns

the url configured in self. It remains valid for as long as self is valid.

fn is_timed_out(&self) -> bool

Check if self is timed out.

Returns

true if self timed out.

fn keep_alive(&self)

Signal the installed keep_alive callback for self.

fn message_sent(&self)

Signal the installed message_sent / message_sent_full callback for self.

Feature: v1_16

fn send_rtcp(&self, buffer: &Buffer) -> Result<(), BoolError>

Send buffer to the installed RTCP callback for self.

buffer

a gst::Buffer

Returns

true on success

fn send_rtp(&self, buffer: &Buffer) -> Result<(), BoolError>

Send buffer to the installed RTP callback for self.

buffer

a gst::Buffer

Returns

true on success

fn set_active(&self, active: bool) -> Result<(), BoolError>

Activate or deactivate datatransfer configured in self.

active

new state of self

Returns

true when the state was changed.

fn set_keepalive<P: Fn() + 'static>(&self, keep_alive: P)

Install callbacks that will be called when RTCP packets are received from the receiver of self.

keep_alive

a callback called when the receiver is active

user_data

user data passed to callback

notify

called with the user_data when no longer needed.

fn set_message_sent<P: Fn() + 'static>(&self, message_sent: P)

Install a callback that will be called when a message has been sent on self.

message_sent

a callback called when a message has been sent

user_data

user data passed to callback

notify

called with the user_data when no longer needed

fn set_message_sent_full<P: Fn(&RTSPStreamTransport) + 'static>(
    &self,
    message_sent: P
)

Install a callback that will be called when a message has been sent on self.

Feature: v1_18

message_sent

a callback called when a message has been sent

user_data

user data passed to callback

notify

called with the user_data when no longer needed

fn set_timed_out(&self, timedout: bool)

Set the timed out state of self to timedout

timedout

timed out value

fn set_url(&self, url: Option<&RTSPUrl>)

Set url as the client url.

url

a client gst_rtsp::RTSPUrl

Loading content...

Implementors

impl<O: IsA<RTSPStreamTransport>> RTSPStreamTransportExt for O[src]

Loading content...