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

pub trait RTSPStreamTransportExt: 'static {
Show methods fn rtpinfo(&self, start_time: 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>);
}

Trait containing all RTSPStreamTransport methods.

Implementors

crate::RTSPStreamTransport

Required methods

fn rtpinfo(&self, start_time: ClockTime) -> Option<GString>[src]

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 stream(&self) -> Option<RTSPStream>[src]

Get the crate::RTSPStream used when constructing self.

Returns

the stream used when constructing self.

fn url(&self) -> Option<RTSPUrl>[src]

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[src]

Check if self is timed out.

Returns

true if self timed out.

fn keep_alive(&self)[src]

Signal the installed keep_alive callback for self.

fn message_sent(&self)[src]

This is supported on crate feature v1_16 only.

Signal the installed message_sent / message_sent_full callback for self.

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

Receive buffer on channel self.

channel

a channel

buffer

a crate::gst::Buffer

Returns

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

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

Send buffer to the installed RTCP callback for self.

buffer

a crate::gst::Buffer

Returns

true on success

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

Send buffer to the installed RTP callback for self.

buffer

a crate::gst::Buffer

Returns

true on success

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

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)[src]

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)[src]

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
)
[src]

This is supported on crate feature v1_18 only.

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_timed_out(&self, timedout: bool)[src]

Set the timed out state of self to timedout

timedout

timed out value

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

Set url as the client url.

url

a client crate::gst_rtsp::RTSPUrl

Loading content...

Implementors

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

fn rtpinfo(&self, start_time: ClockTime) -> Option<GString>[src]

fn stream(&self) -> Option<RTSPStream>[src]

fn url(&self) -> Option<RTSPUrl>[src]

fn is_timed_out(&self) -> bool[src]

fn keep_alive(&self)[src]

fn message_sent(&self)[src]

This is supported on crate feature v1_16 only.

fn recv_data(
    &self,
    channel: u32,
    buffer: &Buffer
) -> Result<FlowSuccess, FlowError>
[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]

This is supported on crate feature v1_18 only.

fn set_timed_out(&self, timedout: bool)[src]

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

Loading content...