GstRtspServer.RTSPStreamTransport

g GObject.Object GObject.Object GstRtspServer.RTSPStreamTransport GstRtspServer.RTSPStreamTransport GObject.Object->GstRtspServer.RTSPStreamTransport

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (stream, tr)

get_rtpinfo (start_time)

get_stream ()

get_transport ()

get_url ()

is_timed_out ()

keep_alive ()

message_sent ()

recv_data (channel, buffer)

send_rtcp (buffer)

send_rtcp_list (buffer_list)

send_rtp (buffer)

send_rtp_list (buffer_list)

set_active (active)

set_callbacks (send_rtp, send_rtcp, *user_data)

set_keepalive (keep_alive, *user_data)

set_list_callbacks (send_rtp_list, send_rtcp_list, *user_data)

set_message_sent (message_sent, *user_data)

set_message_sent_full (message_sent, *user_data)

set_timed_out (timedout)

set_transport (tr)

set_url (url)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

parent instance

Class Details

class GstRtspServer.RTSPStreamTransport(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GstRtspServer.RTSPStreamTransportClass

A Transport description for a stream

classmethod new(stream, tr)[source]
Parameters:
Returns:

a new GstRtspServer.RTSPStreamTransport

Return type:

GstRtspServer.RTSPStreamTransport

Create a new GstRtspServer.RTSPStreamTransport that can be used to manage stream with transport tr.

get_rtpinfo(start_time)[source]
Parameters:

start_time (int) – a star time

Returns:

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

Return type:

str or None

Get the RTP-Info string for self and start_time.

get_stream()[source]
Returns:

the stream used when constructing self.

Return type:

GstRtspServer.RTSPStream or None

Get the GstRtspServer.RTSPStream used when constructing self.

get_transport()[source]
Returns:

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

Return type:

GstRtsp.RTSPTransport or None

Get the transport configured in self.

get_url()[source]
Returns:

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

Return type:

GstRtsp.RTSPUrl or None

Get the url configured in self.

is_timed_out()[source]
Returns:

True if self timed out.

Return type:

bool

Check if self is timed out.

keep_alive()[source]

Signal the installed keep_alive callback for self.

message_sent()[source]

Signal the installed message_sent / message_sent_full callback for self.

New in version 1.16.

recv_data(channel, buffer)[source]
Parameters:
Returns:

a Gst.FlowReturn. Returns Gst.FlowReturn.NOT_LINKED when channel is not configured in the transport of self.

Return type:

Gst.FlowReturn

Receive buffer on channel self.

send_rtcp(buffer)[source]
Parameters:

buffer (Gst.Buffer) – a Gst.Buffer

Returns:

True on success

Return type:

bool

Send buffer to the installed RTCP callback for self.

send_rtcp_list(buffer_list)[source]
Parameters:

buffer_list (Gst.BufferList) – a Gst.Buffer

Returns:

True on success

Return type:

bool

Send buffer_list to the installed RTCP callback for self.

New in version 1.16.

send_rtp(buffer)[source]
Parameters:

buffer (Gst.Buffer) – a Gst.Buffer

Returns:

True on success

Return type:

bool

Send buffer to the installed RTP callback for self.

send_rtp_list(buffer_list)[source]
Parameters:

buffer_list (Gst.BufferList) – a Gst.BufferList

Returns:

True on success

Return type:

bool

Send buffer_list to the installed RTP callback for self.

New in version 1.16.

set_active(active)[source]
Parameters:

active (bool) – new state of self

Returns:

True when the state was changed.

Return type:

bool

Activate or deactivate datatransfer configured in self.

set_callbacks(send_rtp, send_rtcp, *user_data)[source]
Parameters:

Install callbacks that will be called when GstRtsp.data for a stream should be sent to a client. This is usually used when sending RTP/RTCP over TCP.

set_keepalive(keep_alive, *user_data)[source]
Parameters:

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

set_list_callbacks(send_rtp_list, send_rtcp_list, *user_data)[source]
Parameters:

Install callbacks that will be called when GstRtsp.data for a stream should be sent to a client. This is usually used when sending RTP/RTCP over TCP.

New in version 1.16.

set_message_sent(message_sent, *user_data)[source]
Parameters:

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

set_message_sent_full(message_sent, *user_data)[source]
Parameters:

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

New in version 1.18.

set_timed_out(timedout)[source]
Parameters:

timedout (bool) – timed out value

Set the timed out state of self to timedout

set_transport(tr)[source]
Parameters:

tr (GstRtsp.RTSPTransport) – a client GstRtsp.RTSPTransport

Set tr as the client transport. This function takes ownership of the passed tr.

set_url(url)[source]
Parameters:

url (GstRtsp.RTSPUrl or None) – a client GstRtsp.RTSPUrl

Set url as the client url.