pub trait RTSPStreamTransportExt: IsA<RTSPStreamTransport> + Sealed + 'static {
Show 15 methods // Provided methods fn rtpinfo( &self, start_time: impl Into<Option<ClockTime>> ) -> Option<GString> { ... } fn stream(&self) -> Option<RTSPStream> { ... } fn url(&self) -> Option<RTSPUrl> { ... } fn is_timed_out(&self) -> bool { ... } fn keep_alive(&self) { ... } fn message_sent(&self) { ... } fn recv_data( &self, channel: u32, buffer: Buffer ) -> Result<FlowSuccess, FlowError> { ... } 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>) { ... }
}
Expand description

Trait containing all RTSPStreamTransport methods.

§Implementors

RTSPStreamTransport

Provided Methods§

source

fn rtpinfo(&self, start_time: impl Into<Option<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.

source

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

Get the RTSPStream used when constructing self.

§Returns

the stream used when constructing self.

source

fn 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.

source

fn is_timed_out(&self) -> bool

Check if self is timed out.

§Returns

true if self timed out.

source

fn keep_alive(&self)

Signal the installed keep_alive callback for self.

source

fn message_sent(&self)

Signal the installed message_sent / message_sent_full callback for self.

source

fn recv_data( &self, channel: u32, buffer: Buffer ) -> Result<FlowSuccess, FlowError>

Receive buffer on channel self.

§channel

a channel

§buffer

a gst::Buffer

§Returns

a gst::FlowReturn. Returns GST_FLOW_NOT_LINKED when channel is not configured in the transport of self.

source

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

source

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

source

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.

source

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

§notify

called with the user_data when no longer needed.

source

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

§notify

called with the user_data when no longer needed

source

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.

§message_sent

a callback called when a message has been sent

§notify

called with the user_data when no longer needed

source

fn set_timed_out(&self, timedout: bool)

Set the timed out state of self to timedout

§timedout

timed out value

source

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

Set url as the client url.

§url

a client gst_rtsp::RTSPUrl

Object Safety§

This trait is not object safe.

Implementors§