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: - stream (GstRtspServer.RTSPStream) – aGstRtspServer.RTSPStream
- tr (GstRtsp.RTSPTransport) – aGstRtsp.RTSPTransport
 - Returns: - Return type: - Create a new - GstRtspServer.RTSPStreamTransportthat can be used to manage stream with transport tr.
- stream (
 - 
get_rtpinfo(start_time)[source]¶
- Parameters: - start_time ( - int) – a star time- Returns: - the RTPInfo string for self and start_time or - Nonewhen the RTP-Info could not be determined.- GLib.free() after usage.- Return type: - stror- None- Get the RTP-Info string for self and start_time. 
 - 
get_stream()[source]¶
- Returns: - the stream used when constructing self. - Return type: - GstRtspServer.RTSPStreamor- None- Get the - GstRtspServer.RTSPStreamused 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.RTSPTransportor- 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.RTSPUrlor- None- Get the url configured in self. 
 - 
is_timed_out()[source]¶
- Returns: - Trueif self timed out.- Return type: - bool- Check if self is timed out. 
 - 
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 channel
- buffer (Gst.Buffer) – aGst.Buffer
 - Returns: - a - Gst.FlowReturn. Returns- Gst.FlowReturn.NOT_LINKEDwhen channel is not configured in the transport of self.- Return type: - Receive buffer on channel self. 
- channel (
 - 
send_rtcp(buffer)[source]¶
- Parameters: - buffer ( - Gst.Buffer) – a- Gst.Buffer- Returns: - Trueon 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: - Trueon 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: - Trueon 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: - Trueon 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: - Truewhen the state was changed.- Return type: - bool- 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 sent
- send_rtcp (GstRtspServer.RTSPSendFunc) – a callback called when RTCP should be sent
- user_data (objectorNone) – userGstRtsp.datapassed to callbacks
 - Install callbacks that will be called when - GstRtsp.datafor a stream should be sent to a client. This is usually used when sending RTP/RTCP over TCP.
- send_rtp (
 - 
set_keepalive(keep_alive, *user_data)[source]¶
- Parameters: - keep_alive (GstRtspServer.RTSPKeepAliveFunc) – a callback called when the receiver is active
- user_data (objectorNone) – userGstRtsp.datapassed to callback
 - Install callbacks that will be called when RTCP packets are received from the receiver of self. 
- keep_alive (
 - 
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 sent
- send_rtcp_list (GstRtspServer.RTSPSendListFunc) – a callback called when RTCP should be sent
- user_data (objectorNone) – userGstRtsp.datapassed to callbacks
 - Install callbacks that will be called when - GstRtsp.datafor a stream should be sent to a client. This is usually used when sending RTP/RTCP over TCP.- New in version 1.16. 
- send_rtp_list (
 - 
set_message_sent(message_sent, *user_data)[source]¶
- Parameters: - message_sent (GstRtspServer.RTSPMessageSentFunc) – a callback called when a message has been sent
- user_data (objectorNone) – userGstRtsp.datapassed to callback
 - Install a callback that will be called when a message has been sent on self. 
- message_sent (
 - 
set_message_sent_full(message_sent, *user_data)[source]¶
- Parameters: - message_sent (GstRtspServer.RTSPMessageSentFuncFull) – a callback called when a message has been sent
- user_data (objectorNone) – userGstRtsp.datapassed to callback
 - Install a callback that will be called when a message has been sent on self. - New in version 1.18. 
- message_sent (
 - 
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.RTSPUrlor- None) – a client- GstRtsp.RTSPUrl- Set url as the client url. 
 
- 
classmethod