[−][src]Trait gstreamer_rtsp_server::RTSPStreamTransportExt
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>
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
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>
fn send_rtp(&self, buffer: &Buffer) -> Result<(), BoolError>
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
)
&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)
fn set_url(&self, url: Option<&RTSPUrl>)
Implementors
impl<O: IsA<RTSPStreamTransport>> RTSPStreamTransportExt for O[src]
fn get_rtpinfo(&self, start_time: ClockTime) -> Option<GString>[src]
fn get_stream(&self) -> Option<RTSPStream>[src]
fn get_url(&self) -> Option<RTSPUrl>[src]
fn is_timed_out(&self) -> bool[src]
fn keep_alive(&self)[src]
fn message_sent(&self)[src]
fn send_rtcp(&self, buffer: &Buffer) -> Result<(), BoolError>[src]
fn send_rtp(&self, buffer: &Buffer) -> Result<(), BoolError>[src]
fn set_active(&self, active: bool) -> Result<(), BoolError>[src]
fn set_keepalive<P: Fn() + 'static>(&self, keep_alive: P)[src]
fn set_message_sent<P: Fn() + 'static>(&self, message_sent: P)[src]
fn set_message_sent_full<P: Fn(&RTSPStreamTransport) + 'static>(
&self,
message_sent: P
)[src]
&self,
message_sent: P
)