GstRtspServer.RTSPStreamTransport¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
parent instance |
Class Details¶
- class GstRtspServer.RTSPStreamTransport(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A Transport description for a stream
- classmethod new(stream, tr)[source]¶
- Parameters:
stream (
GstRtspServer.RTSPStream
) – aGstRtspServer.RTSPStream
- Returns:
- Return type:
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:
Get the RTP-Info string for self and start_time.
- get_stream()[source]¶
- Returns:
the stream used when constructing self.
- Return type:
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:
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:
Get the url configured in 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:
channel (
int
) – a channelbuffer (
Gst.Buffer
) – aGst.Buffer
- Returns:
a
Gst.FlowReturn
. ReturnsGst.FlowReturn.NOT_LINKED
when channel is not configured in the transport of self.- Return type:
Receive buffer on channel self.
- send_rtcp(buffer)[source]¶
- Parameters:
buffer (
Gst.Buffer
) – aGst.Buffer
- Returns:
True
on success- Return type:
Send buffer to the installed RTCP callback for self.
- send_rtcp_list(buffer_list)[source]¶
- Parameters:
buffer_list (
Gst.BufferList
) – aGst.Buffer
- Returns:
True
on success- Return type:
Send buffer_list to the installed RTCP callback for self.
New in version 1.16.
- send_rtp(buffer)[source]¶
- Parameters:
buffer (
Gst.Buffer
) – aGst.Buffer
- Returns:
True
on success- Return type:
Send buffer to the installed RTP callback for self.
- send_rtp_list(buffer_list)[source]¶
- Parameters:
buffer_list (
Gst.BufferList
) – aGst.BufferList
- Returns:
True
on success- Return type:
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:
Activate or deactivate datatransfer configured in self.
- set_callbacks(send_rtp, send_rtcp, *user_data)[source]¶
- Parameters:
send_rtp (
GstRtspServer.RTSPSendFunc
) – a callback called when RTP should be sentsend_rtcp (
GstRtspServer.RTSPSendFunc
) – a callback called when RTCP should be sentuser_data (
object
orNone
) – userGstRtsp.data
passed to callbacks
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:
keep_alive (
GstRtspServer.RTSPKeepAliveFunc
) – a callback called when the receiver is activeuser_data (
object
orNone
) – userGstRtsp.data
passed to callback
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:
send_rtp_list (
GstRtspServer.RTSPSendListFunc
) – a callback called when RTP should be sentsend_rtcp_list (
GstRtspServer.RTSPSendListFunc
) – a callback called when RTCP should be sentuser_data (
object
orNone
) – userGstRtsp.data
passed to callbacks
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:
message_sent (
GstRtspServer.RTSPMessageSentFunc
) – a callback called when a message has been sentuser_data (
object
orNone
) – userGstRtsp.data
passed to callback
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:
message_sent (
GstRtspServer.RTSPMessageSentFuncFull
) – a callback called when a message has been sentuser_data (
object
orNone
) – userGstRtsp.data
passed to callback
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 clientGstRtsp.RTSPTransport
Set tr as the client transport. This function takes ownership of the passed tr.
- set_url(url)[source]¶
- Parameters:
url (
GstRtsp.RTSPUrl
orNone
) – a clientGstRtsp.RTSPUrl
Set url as the client url.