rtsp stream
The GstRTSPStream object manages the data transport for one stream. It is created from a payloader element and a source pad that produce the RTP packets for the stream.
With gst_rtsp_stream_join_bin the streaming elements are added to the bin and rtpbin. gst_rtsp_stream_leave_bin removes the elements again.
The GstRTSPStream will use the configured addresspool, as set with gst_rtsp_stream_set_address_pool, to allocate multicast addresses for the stream. With gst_rtsp_stream_get_multicast_address you can get the configured address.
With gst_rtsp_stream_get_server_port () you can get the port that the server will use to receive RTCP. This is the part that the clients will use to send RTCP to.
With gst_rtsp_stream_add_transport destinations can be added where the stream should be sent to. Use gst_rtsp_stream_remove_transport to remove the destination again.
Each GstRTSPStreamTransport spawns one queue that will serve as a backlog of a controllable maximum size when the reflux from the TCP connection's backpressure starts spilling all over.
Unlike the backlog in rtspconnection, which we have decided should only contain at most one RTP and one RTCP data message in order to allow control messages to go through unobstructed, this backlog only consists of data messages, allowing us to fill it up without concern.
When multiple TCP transports exist, for example in the context of a shared media, we only pop samples from our appsinks when at least one of the transports doesn't experience back pressure: this allows us to pace our sample popping to the speed of the fastest client.
When a sample is popped, it is either sent directly on transports that don't experience backpressure, or queued on the transport's backlog otherwise. Samples are then popped from that backlog when the transport reports it has sent the message.
Once the backlog reaches an overly large duration, the transport is dropped as the client was deemed too slow.
GstRTSPStream
GObject ╰──GstRTSPStream
The definition of a media stream.
Members
parent
(GObject)
–
Class structure
GstRTSPStreamClass
Fields
parent_class
(GObjectClass)
–
GstRtspServer.RTSPStreamClass
Attributes
parent_class
(GObject.ObjectClass)
–
GstRtspServer.RTSPStreamClass
Attributes
parent_class
(GObject.ObjectClass)
–
GstRtspServer.RTSPStream
GObject.Object ╰──GstRtspServer.RTSPStream
The definition of a media stream.
Members
parent
(GObject.Object)
–
GstRtspServer.RTSPStream
GObject.Object ╰──GstRtspServer.RTSPStream
The definition of a media stream.
Members
parent
(GObject.Object)
–
Constructors
gst_rtsp_stream_new
GstRTSPStream * gst_rtsp_stream_new (guint idx, GstElement * payloader, GstPad * pad)
Create a new media stream with index idx that handles RTP data on pad and has a payloader element payloader if pad is a source pad or a depayloader element payloader if pad is a sink pad.
a new GstRTSPStream
GstRtspServer.RTSPStream.prototype.new
function GstRtspServer.RTSPStream.prototype.new(idx: Number, payloader: Gst.Element, pad: Gst.Pad): {
// javascript wrapper for 'gst_rtsp_stream_new'
}
Create a new media stream with index idx that handles RTP data on pad and has a payloader element payloader if pad is a source pad or a depayloader element payloader if pad is a sink pad.
Parameters:
an index
a new GstRtspServer.RTSPStream
GstRtspServer.RTSPStream.new
def GstRtspServer.RTSPStream.new (idx, payloader, pad):
#python wrapper for 'gst_rtsp_stream_new'
Create a new media stream with index idx that handles RTP data on pad and has a payloader element payloader if pad is a source pad or a depayloader element payloader if pad is a sink pad.
a new GstRtspServer.RTSPStream
Methods
gst_rtsp_stream_add_multicast_client_address
gboolean gst_rtsp_stream_add_multicast_client_address (GstRTSPStream * stream, const gchar * destination, guint rtp_port, guint rtcp_port, GSocketFamily family)
Add multicast client address to stream. At this point, the sockets that will stream RTP and RTCP data to destination are supposed to be allocated.
Parameters:
stream
–
destination
(
[transfer: none])
–
a multicast address to add
rtp_port
–
RTP port
rtcp_port
–
RTCP port
family
–
socket family
TRUE if destination can be addedd and handled by stream.
Since : 1.16
GstRtspServer.RTSPStream.prototype.add_multicast_client_address
function GstRtspServer.RTSPStream.prototype.add_multicast_client_address(destination: String, rtp_port: Number, rtcp_port: Number, family: Gio.SocketFamily): {
// javascript wrapper for 'gst_rtsp_stream_add_multicast_client_address'
}
Add multicast client address to stream. At this point, the sockets that will stream RTP and RTCP data to destination are supposed to be allocated.
Parameters:
a multicast address to add
RTP port
RTCP port
socket family
Since : 1.16
GstRtspServer.RTSPStream.add_multicast_client_address
def GstRtspServer.RTSPStream.add_multicast_client_address (self, destination, rtp_port, rtcp_port, family):
#python wrapper for 'gst_rtsp_stream_add_multicast_client_address'
Add multicast client address to stream. At this point, the sockets that will stream RTP and RTCP data to destination are supposed to be allocated.
Parameters:
a multicast address to add
RTP port
RTCP port
socket family
Since : 1.16
gst_rtsp_stream_add_transport
gboolean gst_rtsp_stream_add_transport (GstRTSPStream * stream, GstRTSPStreamTransport * trans)
Add the transport in trans to stream. The media of stream will then also be send to the values configured in trans. Adding the same transport twice will not add it a second time.
stream must be joined to a bin.
trans must contain a valid GstRTSPTransport.
TRUE if trans was added
GstRtspServer.RTSPStream.prototype.add_transport
function GstRtspServer.RTSPStream.prototype.add_transport(trans: GstRtspServer.RTSPStreamTransport): {
// javascript wrapper for 'gst_rtsp_stream_add_transport'
}
Add the transport in trans to stream. The media of stream will then also be send to the values configured in trans. Adding the same transport twice will not add it a second time.
stream must be joined to a bin.
trans must contain a valid GstRtsp.RTSPTransport.
Parameters:
GstRtspServer.RTSPStream.add_transport
def GstRtspServer.RTSPStream.add_transport (self, trans):
#python wrapper for 'gst_rtsp_stream_add_transport'
Add the transport in trans to stream. The media of stream will then also be send to the values configured in trans. Adding the same transport twice will not add it a second time.
stream must be joined to a bin.
trans must contain a valid GstRtsp.RTSPTransport.
Parameters:
gst_rtsp_stream_allocate_udp_sockets
gboolean gst_rtsp_stream_allocate_udp_sockets (GstRTSPStream * stream, GSocketFamily family, GstRTSPTransport * transport, gboolean use_client_settings)
Allocates RTP and RTCP ports.
Parameters:
stream
–
family
–
protocol family
transport
–
transport method
use_client_settings
–
Whether to use client settings or not
TRUE if the RTP and RTCP sockets have been succeccully allocated.
GstRtspServer.RTSPStream.prototype.allocate_udp_sockets
function GstRtspServer.RTSPStream.prototype.allocate_udp_sockets(family: Gio.SocketFamily, transport: GstRtsp.RTSPTransport, use_client_settings: Number): {
// javascript wrapper for 'gst_rtsp_stream_allocate_udp_sockets'
}
Allocates RTP and RTCP ports.
Parameters:
protocol family
transport method
Whether to use client settings or not
GstRtspServer.RTSPStream.allocate_udp_sockets
def GstRtspServer.RTSPStream.allocate_udp_sockets (self, family, transport, use_client_settings):
#python wrapper for 'gst_rtsp_stream_allocate_udp_sockets'
Allocates RTP and RTCP ports.
Parameters:
protocol family
transport method
Whether to use client settings or not
gst_rtsp_stream_complete_stream
gboolean gst_rtsp_stream_complete_stream (GstRTSPStream * stream, const GstRTSPTransport * transport)
Add a receiver and sender part to the pipeline based on the transport from SETUP.
TRUE if the stream has been successfully updated.
Since : 1.14
GstRtspServer.RTSPStream.prototype.complete_stream
function GstRtspServer.RTSPStream.prototype.complete_stream(transport: GstRtsp.RTSPTransport): {
// javascript wrapper for 'gst_rtsp_stream_complete_stream'
}
Add a receiver and sender part to the pipeline based on the transport from SETUP.
Parameters:
Since : 1.14
GstRtspServer.RTSPStream.complete_stream
def GstRtspServer.RTSPStream.complete_stream (self, transport):
#python wrapper for 'gst_rtsp_stream_complete_stream'
Add a receiver and sender part to the pipeline based on the transport from SETUP.
Parameters:
Since : 1.14
gst_rtsp_stream_get_address_pool
GstRTSPAddressPool * gst_rtsp_stream_get_address_pool (GstRTSPStream * stream)
Get the GstRTSPAddressPool used as the address pool of stream.
Parameters:
stream
–
the GstRTSPAddressPool of stream. g_object_unref after usage.
GstRtspServer.RTSPStream.prototype.get_address_pool
function GstRtspServer.RTSPStream.prototype.get_address_pool(): {
// javascript wrapper for 'gst_rtsp_stream_get_address_pool'
}
Get the GstRtspServer.RTSPAddressPool used as the address pool of stream.
Parameters:
the GstRtspServer.RTSPAddressPool of stream. GObject.Object.prototype.unref after usage.
GstRtspServer.RTSPStream.get_address_pool
def GstRtspServer.RTSPStream.get_address_pool (self):
#python wrapper for 'gst_rtsp_stream_get_address_pool'
Get the GstRtspServer.RTSPAddressPool used as the address pool of stream.
Parameters:
the GstRtspServer.RTSPAddressPool of stream. GObject.Object.unref after usage.
gst_rtsp_stream_get_buffer_size
guint gst_rtsp_stream_get_buffer_size (GstRTSPStream * stream)
Get the size of the UDP transmission buffer (in bytes)
Parameters:
stream
–
the size of the UDP TX buffer
Since : 1.6
GstRtspServer.RTSPStream.prototype.get_buffer_size
function GstRtspServer.RTSPStream.prototype.get_buffer_size(): {
// javascript wrapper for 'gst_rtsp_stream_get_buffer_size'
}
Get the size of the UDP transmission buffer (in bytes)
Parameters:
the size of the UDP TX buffer
Since : 1.6
GstRtspServer.RTSPStream.get_buffer_size
def GstRtspServer.RTSPStream.get_buffer_size (self):
#python wrapper for 'gst_rtsp_stream_get_buffer_size'
Get the size of the UDP transmission buffer (in bytes)
Parameters:
the size of the UDP TX buffer
Since : 1.6
gst_rtsp_stream_get_caps
GstCaps * gst_rtsp_stream_get_caps (GstRTSPStream * stream)
Retrieve the current caps of stream.
Parameters:
stream
–
the GstCaps of stream. use gst_caps_unref after usage.
GstRtspServer.RTSPStream.prototype.get_caps
function GstRtspServer.RTSPStream.prototype.get_caps(): {
// javascript wrapper for 'gst_rtsp_stream_get_caps'
}
Retrieve the current caps of stream.
Parameters:
the Gst.Caps of stream. use gst_caps_unref (not introspectable) after usage.
GstRtspServer.RTSPStream.get_caps
def GstRtspServer.RTSPStream.get_caps (self):
#python wrapper for 'gst_rtsp_stream_get_caps'
Retrieve the current caps of stream.
Parameters:
the Gst.Caps of stream. use gst_caps_unref (not introspectable) after usage.
gst_rtsp_stream_get_control
gchar * gst_rtsp_stream_get_control (GstRTSPStream * stream)
Get the control string to identify this stream.
Parameters:
stream
–
the control string. g_free after usage.
GstRtspServer.RTSPStream.prototype.get_control
function GstRtspServer.RTSPStream.prototype.get_control(): {
// javascript wrapper for 'gst_rtsp_stream_get_control'
}
Get the control string to identify this stream.
Parameters:
the control string. GLib.prototype.free after usage.
GstRtspServer.RTSPStream.get_control
def GstRtspServer.RTSPStream.get_control (self):
#python wrapper for 'gst_rtsp_stream_get_control'
Get the control string to identify this stream.
Parameters:
gst_rtsp_stream_get_current_seqnum
guint16 gst_rtsp_stream_get_current_seqnum (GstRTSPStream * stream)
Parameters:
stream
–
GstRtspServer.RTSPStream.prototype.get_current_seqnum
function GstRtspServer.RTSPStream.prototype.get_current_seqnum(): {
// javascript wrapper for 'gst_rtsp_stream_get_current_seqnum'
}
Parameters:
GstRtspServer.RTSPStream.get_current_seqnum
def GstRtspServer.RTSPStream.get_current_seqnum (self):
#python wrapper for 'gst_rtsp_stream_get_current_seqnum'
Parameters:
gst_rtsp_stream_get_dscp_qos
gint gst_rtsp_stream_get_dscp_qos (GstRTSPStream * stream)
Get the configured DSCP QoS in of the outgoing sockets.
Parameters:
stream
–
the DSCP QoS value of the outgoing sockets, or -1 if disbled.
GstRtspServer.RTSPStream.prototype.get_dscp_qos
function GstRtspServer.RTSPStream.prototype.get_dscp_qos(): {
// javascript wrapper for 'gst_rtsp_stream_get_dscp_qos'
}
Get the configured DSCP QoS in of the outgoing sockets.
Parameters:
the DSCP QoS value of the outgoing sockets, or -1 if disbled.
GstRtspServer.RTSPStream.get_dscp_qos
def GstRtspServer.RTSPStream.get_dscp_qos (self):
#python wrapper for 'gst_rtsp_stream_get_dscp_qos'
Get the configured DSCP QoS in of the outgoing sockets.
Parameters:
the DSCP QoS value of the outgoing sockets, or -1 if disbled.
gst_rtsp_stream_get_index
guint gst_rtsp_stream_get_index (GstRTSPStream * stream)
Get the stream index.
Return: the stream index.
Parameters:
stream
–
GstRtspServer.RTSPStream.prototype.get_index
function GstRtspServer.RTSPStream.prototype.get_index(): {
// javascript wrapper for 'gst_rtsp_stream_get_index'
}
Get the stream index.
Return: the stream index.
Parameters:
GstRtspServer.RTSPStream.get_index
def GstRtspServer.RTSPStream.get_index (self):
#python wrapper for 'gst_rtsp_stream_get_index'
Get the stream index.
Return: the stream index.
Parameters:
gst_rtsp_stream_get_joined_bin
GstBin * gst_rtsp_stream_get_joined_bin (GstRTSPStream * stream)
Get the previous joined bin with gst_rtsp_stream_join_bin or NULL.
Return: (transfer full) (nullable): the joined bin or NULL.
Parameters:
stream
–
GstRtspServer.RTSPStream.prototype.get_joined_bin
function GstRtspServer.RTSPStream.prototype.get_joined_bin(): {
// javascript wrapper for 'gst_rtsp_stream_get_joined_bin'
}
Get the previous joined bin with GstRtspServer.RTSPStream.prototype.join_bin or NULL.
Return: (transfer full) (nullable): the joined bin or NULL.
Parameters:
GstRtspServer.RTSPStream.get_joined_bin
def GstRtspServer.RTSPStream.get_joined_bin (self):
#python wrapper for 'gst_rtsp_stream_get_joined_bin'
Get the previous joined bin with GstRtspServer.RTSPStream.join_bin or NULL.
Return: (transfer full) (nullable): the joined bin or NULL.
Parameters:
gst_rtsp_stream_get_max_mcast_ttl
guint gst_rtsp_stream_get_max_mcast_ttl (GstRTSPStream * stream)
Get the the maximum time-to-live value of outgoing multicast packets.
Parameters:
stream
–
the maximum time-to-live value of outgoing multicast packets.
Since : 1.16
GstRtspServer.RTSPStream.prototype.get_max_mcast_ttl
function GstRtspServer.RTSPStream.prototype.get_max_mcast_ttl(): {
// javascript wrapper for 'gst_rtsp_stream_get_max_mcast_ttl'
}
Get the the maximum time-to-live value of outgoing multicast packets.
Parameters:
the maximum time-to-live value of outgoing multicast packets.
Since : 1.16
GstRtspServer.RTSPStream.get_max_mcast_ttl
def GstRtspServer.RTSPStream.get_max_mcast_ttl (self):
#python wrapper for 'gst_rtsp_stream_get_max_mcast_ttl'
Get the the maximum time-to-live value of outgoing multicast packets.
Parameters:
the maximum time-to-live value of outgoing multicast packets.
Since : 1.16
gst_rtsp_stream_get_mtu
guint gst_rtsp_stream_get_mtu (GstRTSPStream * stream)
Get the configured MTU in the payloader of stream.
Parameters:
stream
–
the MTU of the payloader.
GstRtspServer.RTSPStream.prototype.get_mtu
function GstRtspServer.RTSPStream.prototype.get_mtu(): {
// javascript wrapper for 'gst_rtsp_stream_get_mtu'
}
Get the configured MTU in the payloader of stream.
Parameters:
the MTU of the payloader.
GstRtspServer.RTSPStream.get_mtu
def GstRtspServer.RTSPStream.get_mtu (self):
#python wrapper for 'gst_rtsp_stream_get_mtu'
Get the configured MTU in the payloader of stream.
Parameters:
the MTU of the payloader.
gst_rtsp_stream_get_multicast_address
GstRTSPAddress * gst_rtsp_stream_get_multicast_address (GstRTSPStream * stream, GSocketFamily family)
Get the multicast address of stream for family. The original GstRTSPAddress is cached and copy is returned, so freeing the return value won't release the address from the pool.
the GstRTSPAddress of stream or NULL when no address could be allocated. gst_rtsp_address_free after usage.
GstRtspServer.RTSPStream.prototype.get_multicast_address
function GstRtspServer.RTSPStream.prototype.get_multicast_address(family: Gio.SocketFamily): {
// javascript wrapper for 'gst_rtsp_stream_get_multicast_address'
}
Get the multicast address of stream for family. The original GstRtspServer.RTSPAddress is cached and copy is returned, so freeing the return value won't release the address from the pool.
the GstRtspServer.RTSPAddress of stream or null when no address could be allocated. GstRtspServer.RTSPAddress.prototype.free after usage.
GstRtspServer.RTSPStream.get_multicast_address
def GstRtspServer.RTSPStream.get_multicast_address (self, family):
#python wrapper for 'gst_rtsp_stream_get_multicast_address'
Get the multicast address of stream for family. The original GstRtspServer.RTSPAddress is cached and copy is returned, so freeing the return value won't release the address from the pool.
the GstRtspServer.RTSPAddress of stream or None when no address could be allocated. GstRtspServer.RTSPAddress.free after usage.
gst_rtsp_stream_get_multicast_client_addresses
gchar * gst_rtsp_stream_get_multicast_client_addresses (GstRTSPStream * stream)
Get all multicast client addresses that RTP data will be sent to
Parameters:
stream
–
A comma separated list of host:port pairs with destinations
Since : 1.16
GstRtspServer.RTSPStream.prototype.get_multicast_client_addresses
function GstRtspServer.RTSPStream.prototype.get_multicast_client_addresses(): {
// javascript wrapper for 'gst_rtsp_stream_get_multicast_client_addresses'
}
Get all multicast client addresses that RTP data will be sent to
Parameters:
A comma separated list of host:port pairs with destinations
Since : 1.16
GstRtspServer.RTSPStream.get_multicast_client_addresses
def GstRtspServer.RTSPStream.get_multicast_client_addresses (self):
#python wrapper for 'gst_rtsp_stream_get_multicast_client_addresses'
Get all multicast client addresses that RTP data will be sent to
Parameters:
A comma separated list of host:port pairs with destinations
Since : 1.16
gst_rtsp_stream_get_multicast_iface
gchar * gst_rtsp_stream_get_multicast_iface (GstRTSPStream * stream)
Get the multicast interface used for stream.
Parameters:
stream
–
the multicast interface for stream. g_free after usage.
GstRtspServer.RTSPStream.prototype.get_multicast_iface
function GstRtspServer.RTSPStream.prototype.get_multicast_iface(): {
// javascript wrapper for 'gst_rtsp_stream_get_multicast_iface'
}
Get the multicast interface used for stream.
Parameters:
the multicast interface for stream. GLib.prototype.free after usage.
GstRtspServer.RTSPStream.get_multicast_iface
def GstRtspServer.RTSPStream.get_multicast_iface (self):
#python wrapper for 'gst_rtsp_stream_get_multicast_iface'
Get the multicast interface used for stream.
Parameters:
gst_rtsp_stream_get_profiles
GstRTSPProfile gst_rtsp_stream_get_profiles (GstRTSPStream * stream)
Get the allowed profiles of stream.
Parameters:
stream
–
GstRtspServer.RTSPStream.prototype.get_profiles
function GstRtspServer.RTSPStream.prototype.get_profiles(): {
// javascript wrapper for 'gst_rtsp_stream_get_profiles'
}
Get the allowed profiles of stream.
Parameters:
GstRtspServer.RTSPStream.get_profiles
def GstRtspServer.RTSPStream.get_profiles (self):
#python wrapper for 'gst_rtsp_stream_get_profiles'
Get the allowed profiles of stream.
Parameters:
gst_rtsp_stream_get_protocols
GstRTSPLowerTrans gst_rtsp_stream_get_protocols (GstRTSPStream * stream)
Get the allowed protocols of stream.
Parameters:
stream
–
GstRtspServer.RTSPStream.prototype.get_protocols
function GstRtspServer.RTSPStream.prototype.get_protocols(): {
// javascript wrapper for 'gst_rtsp_stream_get_protocols'
}
Get the allowed protocols of stream.
Parameters:
GstRtspServer.RTSPStream.get_protocols
def GstRtspServer.RTSPStream.get_protocols (self):
#python wrapper for 'gst_rtsp_stream_get_protocols'
Get the allowed protocols of stream.
Parameters:
gst_rtsp_stream_get_pt
guint gst_rtsp_stream_get_pt (GstRTSPStream * stream)
Get the stream payload type.
Return: the stream payload type.
Parameters:
stream
–
GstRtspServer.RTSPStream.prototype.get_pt
function GstRtspServer.RTSPStream.prototype.get_pt(): {
// javascript wrapper for 'gst_rtsp_stream_get_pt'
}
Get the stream payload type.
Return: the stream payload type.
Parameters:
GstRtspServer.RTSPStream.get_pt
def GstRtspServer.RTSPStream.get_pt (self):
#python wrapper for 'gst_rtsp_stream_get_pt'
Get the stream payload type.
Return: the stream payload type.
Parameters:
gst_rtsp_stream_get_publish_clock_mode
GstRTSPPublishClockMode gst_rtsp_stream_get_publish_clock_mode (GstRTSPStream * stream)
Gets if and how the stream clock should be published according to RFC7273.
Parameters:
stream
–
The GstRTSPPublishClockMode
Since : 1.8
GstRtspServer.RTSPStream.prototype.get_publish_clock_mode
function GstRtspServer.RTSPStream.prototype.get_publish_clock_mode(): {
// javascript wrapper for 'gst_rtsp_stream_get_publish_clock_mode'
}
Gets if and how the stream clock should be published according to RFC7273.
Parameters:
The GstRTSPPublishClockMode
Since : 1.8
GstRtspServer.RTSPStream.get_publish_clock_mode
def GstRtspServer.RTSPStream.get_publish_clock_mode (self):
#python wrapper for 'gst_rtsp_stream_get_publish_clock_mode'
Gets if and how the stream clock should be published according to RFC7273.
Parameters:
The GstRTSPPublishClockMode
Since : 1.8
gst_rtsp_stream_get_rate_control
gboolean gst_rtsp_stream_get_rate_control (GstRTSPStream * stream)
Parameters:
stream
–
whether stream will follow the Rate-Control=no behaviour as specified in the ONVIF replay spec.
Since : 1.18
GstRtspServer.RTSPStream.prototype.get_rate_control
function GstRtspServer.RTSPStream.prototype.get_rate_control(): {
// javascript wrapper for 'gst_rtsp_stream_get_rate_control'
}
Parameters:
whether stream will follow the Rate-Control=no behaviour as specified in the ONVIF replay spec.
Since : 1.18
GstRtspServer.RTSPStream.get_rate_control
def GstRtspServer.RTSPStream.get_rate_control (self):
#python wrapper for 'gst_rtsp_stream_get_rate_control'
Parameters:
whether stream will follow the Rate-Control=no behaviour as specified in the ONVIF replay spec.
Since : 1.18
gst_rtsp_stream_get_rates
gboolean gst_rtsp_stream_get_rates (GstRTSPStream * stream, gdouble * rate, gdouble * applied_rate)
Retrieve the current rate and/or applied_rate.
Parameters:
stream
–
rate
(
[optional][out])
–
the configured rate
applied_rate
(
[optional][out])
–
the configured applied_rate
TRUE if rate and/or applied_rate could be determined.
Since : 1.18
GstRtspServer.RTSPStream.prototype.get_rates
function GstRtspServer.RTSPStream.prototype.get_rates(): {
// javascript wrapper for 'gst_rtsp_stream_get_rates'
}
Retrieve the current rate and/or applied_rate.
Parameters:
Returns a tuple made of:
Since : 1.18
GstRtspServer.RTSPStream.get_rates
def GstRtspServer.RTSPStream.get_rates (self):
#python wrapper for 'gst_rtsp_stream_get_rates'
Retrieve the current rate and/or applied_rate.
Parameters:
Returns a tuple made of:
Since : 1.18
gst_rtsp_stream_get_retransmission_pt
guint gst_rtsp_stream_get_retransmission_pt (GstRTSPStream * stream)
Get the payload-type used for retransmission of this stream
Parameters:
stream
–
The retransmission PT.
GstRtspServer.RTSPStream.prototype.get_retransmission_pt
function GstRtspServer.RTSPStream.prototype.get_retransmission_pt(): {
// javascript wrapper for 'gst_rtsp_stream_get_retransmission_pt'
}
Get the payload-type used for retransmission of this stream
Parameters:
The retransmission PT.
GstRtspServer.RTSPStream.get_retransmission_pt
def GstRtspServer.RTSPStream.get_retransmission_pt (self):
#python wrapper for 'gst_rtsp_stream_get_retransmission_pt'
Get the payload-type used for retransmission of this stream
Parameters:
The retransmission PT.
gst_rtsp_stream_get_retransmission_time
GstClockTime gst_rtsp_stream_get_retransmission_time (GstRTSPStream * stream)
Get the amount of time to store retransmission data.
Parameters:
stream
–
the amount of time to store retransmission data.
GstRtspServer.RTSPStream.prototype.get_retransmission_time
function GstRtspServer.RTSPStream.prototype.get_retransmission_time(): {
// javascript wrapper for 'gst_rtsp_stream_get_retransmission_time'
}
Get the amount of time to store retransmission data.
Parameters:
the amount of time to store retransmission data.
GstRtspServer.RTSPStream.get_retransmission_time
def GstRtspServer.RTSPStream.get_retransmission_time (self):
#python wrapper for 'gst_rtsp_stream_get_retransmission_time'
Get the amount of time to store retransmission data.
Parameters:
the amount of time to store retransmission data.
gst_rtsp_stream_get_rtcp_multicast_socket
GSocket * gst_rtsp_stream_get_rtcp_multicast_socket (GstRTSPStream * stream, GSocketFamily family)
Get the multicast RTCP socket from stream for a family.
the multicast RTCP socket or NULL if no socket could be allocated for family. Unref after usage
Since : 1.14
GstRtspServer.RTSPStream.prototype.get_rtcp_multicast_socket
function GstRtspServer.RTSPStream.prototype.get_rtcp_multicast_socket(family: Gio.SocketFamily): {
// javascript wrapper for 'gst_rtsp_stream_get_rtcp_multicast_socket'
}
Get the multicast RTCP socket from stream for a family.
Parameters:
the socket family
the multicast RTCP socket or null if no socket could be allocated for family. Unref after usage
Since : 1.14
GstRtspServer.RTSPStream.get_rtcp_multicast_socket
def GstRtspServer.RTSPStream.get_rtcp_multicast_socket (self, family):
#python wrapper for 'gst_rtsp_stream_get_rtcp_multicast_socket'
Get the multicast RTCP socket from stream for a family.
Parameters:
the socket family
the multicast RTCP socket or None if no socket could be allocated for family. Unref after usage
Since : 1.14
gst_rtsp_stream_get_rtcp_socket
GSocket * gst_rtsp_stream_get_rtcp_socket (GstRTSPStream * stream, GSocketFamily family)
Get the RTCP socket from stream for a family.
stream must be joined to a bin.
the RTCP socket or NULL if no socket could be allocated for family. Unref after usage
GstRtspServer.RTSPStream.prototype.get_rtcp_socket
function GstRtspServer.RTSPStream.prototype.get_rtcp_socket(family: Gio.SocketFamily): {
// javascript wrapper for 'gst_rtsp_stream_get_rtcp_socket'
}
Get the RTCP socket from stream for a family.
stream must be joined to a bin.
Parameters:
the socket family
the RTCP socket or null if no socket could be allocated for family. Unref after usage
GstRtspServer.RTSPStream.get_rtcp_socket
def GstRtspServer.RTSPStream.get_rtcp_socket (self, family):
#python wrapper for 'gst_rtsp_stream_get_rtcp_socket'
Get the RTCP socket from stream for a family.
stream must be joined to a bin.
Parameters:
the socket family
the RTCP socket or None if no socket could be allocated for family. Unref after usage
gst_rtsp_stream_get_rtp_multicast_socket
GSocket * gst_rtsp_stream_get_rtp_multicast_socket (GstRTSPStream * stream, GSocketFamily family)
Get the multicast RTP socket from stream for a family.
the multicast RTP socket or NULL if no
socket could be allocated for family. Unref after usage
GstRtspServer.RTSPStream.prototype.get_rtp_multicast_socket
function GstRtspServer.RTSPStream.prototype.get_rtp_multicast_socket(family: Gio.SocketFamily): {
// javascript wrapper for 'gst_rtsp_stream_get_rtp_multicast_socket'
}
Get the multicast RTP socket from stream for a family.
Parameters:
the socket family
the multicast RTP socket or null if no
socket could be allocated for family. Unref after usage
GstRtspServer.RTSPStream.get_rtp_multicast_socket
def GstRtspServer.RTSPStream.get_rtp_multicast_socket (self, family):
#python wrapper for 'gst_rtsp_stream_get_rtp_multicast_socket'
Get the multicast RTP socket from stream for a family.
Parameters:
the socket family
the multicast RTP socket or None if no
socket could be allocated for family. Unref after usage
gst_rtsp_stream_get_rtp_socket
GSocket * gst_rtsp_stream_get_rtp_socket (GstRTSPStream * stream, GSocketFamily family)
Get the RTP socket from stream for a family.
stream must be joined to a bin.
the RTP socket or NULL if no socket could be allocated for family. Unref after usage
GstRtspServer.RTSPStream.prototype.get_rtp_socket
function GstRtspServer.RTSPStream.prototype.get_rtp_socket(family: Gio.SocketFamily): {
// javascript wrapper for 'gst_rtsp_stream_get_rtp_socket'
}
Get the RTP socket from stream for a family.
stream must be joined to a bin.
Parameters:
the socket family
the RTP socket or null if no socket could be allocated for family. Unref after usage
GstRtspServer.RTSPStream.get_rtp_socket
def GstRtspServer.RTSPStream.get_rtp_socket (self, family):
#python wrapper for 'gst_rtsp_stream_get_rtp_socket'
Get the RTP socket from stream for a family.
stream must be joined to a bin.
Parameters:
the socket family
the RTP socket or None if no socket could be allocated for family. Unref after usage
gst_rtsp_stream_get_rtpinfo
gboolean gst_rtsp_stream_get_rtpinfo (GstRTSPStream * stream, guint * rtptime, guint * seq, guint * clock_rate, GstClockTime * running_time)
Retrieve the current rtptime, seq and running-time. This is used to construct a RTPInfo reply header.
Parameters:
stream
–
rtptime
(
[allow-none][out])
–
result RTP timestamp
seq
(
[allow-none][out])
–
result RTP seqnum
clock_rate
(
[allow-none][out])
–
the clock rate
running_time
(
[out])
–
result running-time
TRUE when rtptime, seq and running-time could be determined.
GstRtspServer.RTSPStream.prototype.get_rtpinfo
function GstRtspServer.RTSPStream.prototype.get_rtpinfo(): {
// javascript wrapper for 'gst_rtsp_stream_get_rtpinfo'
}
Retrieve the current rtptime, seq and running-time. This is used to construct a RTPInfo reply header.
Parameters:
Returns a tuple made of:
GstRtspServer.RTSPStream.get_rtpinfo
def GstRtspServer.RTSPStream.get_rtpinfo (self):
#python wrapper for 'gst_rtsp_stream_get_rtpinfo'
Retrieve the current rtptime, seq and running-time. This is used to construct a RTPInfo reply header.
Parameters:
Returns a tuple made of:
gst_rtsp_stream_get_rtpsession
GObject * gst_rtsp_stream_get_rtpsession (GstRTSPStream * stream)
Get the RTP session of this stream.
Parameters:
stream
–
The RTP session of this stream. Unref after usage.
GstRtspServer.RTSPStream.prototype.get_rtpsession
function GstRtspServer.RTSPStream.prototype.get_rtpsession(): {
// javascript wrapper for 'gst_rtsp_stream_get_rtpsession'
}
Get the RTP session of this stream.
Parameters:
The RTP session of this stream. Unref after usage.
GstRtspServer.RTSPStream.get_rtpsession
def GstRtspServer.RTSPStream.get_rtpsession (self):
#python wrapper for 'gst_rtsp_stream_get_rtpsession'
Get the RTP session of this stream.
Parameters:
The RTP session of this stream. Unref after usage.
gst_rtsp_stream_get_server_port
gst_rtsp_stream_get_server_port (GstRTSPStream * stream, GstRTSPRange * server_port, GSocketFamily family)
Fill server_port with the port pair used by the server. This function can only be called when stream has been joined.
Parameters:
stream
–
server_port
(
[out])
–
result server port
family
–
the port family to get
GstRtspServer.RTSPStream.prototype.get_server_port
function GstRtspServer.RTSPStream.prototype.get_server_port(family: Gio.SocketFamily): {
// javascript wrapper for 'gst_rtsp_stream_get_server_port'
}
Fill server_port with the port pair used by the server. This function can only be called when stream has been joined.
Parameters:
the port family to get
GstRtspServer.RTSPStream.get_server_port
def GstRtspServer.RTSPStream.get_server_port (self, family):
#python wrapper for 'gst_rtsp_stream_get_server_port'
Fill server_port with the port pair used by the server. This function can only be called when stream has been joined.
Parameters:
the port family to get
gst_rtsp_stream_get_sinkpad
GstPad * gst_rtsp_stream_get_sinkpad (GstRTSPStream * stream)
Get the sinkpad associated with stream.
Parameters:
stream
–
the sinkpad. Unref after usage.
GstRtspServer.RTSPStream.prototype.get_sinkpad
function GstRtspServer.RTSPStream.prototype.get_sinkpad(): {
// javascript wrapper for 'gst_rtsp_stream_get_sinkpad'
}
Get the sinkpad associated with stream.
Parameters:
the sinkpad. Unref after usage.
GstRtspServer.RTSPStream.get_sinkpad
def GstRtspServer.RTSPStream.get_sinkpad (self):
#python wrapper for 'gst_rtsp_stream_get_sinkpad'
Get the sinkpad associated with stream.
Parameters:
the sinkpad. Unref after usage.
gst_rtsp_stream_get_srcpad
GstPad * gst_rtsp_stream_get_srcpad (GstRTSPStream * stream)
Get the srcpad associated with stream.
Parameters:
stream
–
the srcpad. Unref after usage.
GstRtspServer.RTSPStream.prototype.get_srcpad
function GstRtspServer.RTSPStream.prototype.get_srcpad(): {
// javascript wrapper for 'gst_rtsp_stream_get_srcpad'
}
Get the srcpad associated with stream.
Parameters:
the srcpad. Unref after usage.
GstRtspServer.RTSPStream.get_srcpad
def GstRtspServer.RTSPStream.get_srcpad (self):
#python wrapper for 'gst_rtsp_stream_get_srcpad'
Get the srcpad associated with stream.
Parameters:
the srcpad. Unref after usage.
gst_rtsp_stream_get_srtp_encoder
GstElement * gst_rtsp_stream_get_srtp_encoder (GstRTSPStream * stream)
Get the SRTP encoder for this stream.
Parameters:
stream
–
The SRTP encoder for this stream. Unref after usage.
GstRtspServer.RTSPStream.prototype.get_srtp_encoder
function GstRtspServer.RTSPStream.prototype.get_srtp_encoder(): {
// javascript wrapper for 'gst_rtsp_stream_get_srtp_encoder'
}
Get the SRTP encoder for this stream.
Parameters:
The SRTP encoder for this stream. Unref after usage.
GstRtspServer.RTSPStream.get_srtp_encoder
def GstRtspServer.RTSPStream.get_srtp_encoder (self):
#python wrapper for 'gst_rtsp_stream_get_srtp_encoder'
Get the SRTP encoder for this stream.
Parameters:
The SRTP encoder for this stream. Unref after usage.
gst_rtsp_stream_get_ssrc
gst_rtsp_stream_get_ssrc (GstRTSPStream * stream, guint * ssrc)
Get the SSRC used by the RTP session of this stream. This function can only be called when stream has been joined.
GstRtspServer.RTSPStream.prototype.get_ssrc
function GstRtspServer.RTSPStream.prototype.get_ssrc(): {
// javascript wrapper for 'gst_rtsp_stream_get_ssrc'
}
Get the SSRC used by the RTP session of this stream. This function can only be called when stream has been joined.
Parameters:
GstRtspServer.RTSPStream.get_ssrc
def GstRtspServer.RTSPStream.get_ssrc (self):
#python wrapper for 'gst_rtsp_stream_get_ssrc'
Get the SSRC used by the RTP session of this stream. This function can only be called when stream has been joined.
Parameters:
gst_rtsp_stream_get_ulpfec_enabled
gboolean gst_rtsp_stream_get_ulpfec_enabled (GstRTSPStream * stream)
Parameters:
stream
–
GstRtspServer.RTSPStream.prototype.get_ulpfec_enabled
function GstRtspServer.RTSPStream.prototype.get_ulpfec_enabled(): {
// javascript wrapper for 'gst_rtsp_stream_get_ulpfec_enabled'
}
Parameters:
GstRtspServer.RTSPStream.get_ulpfec_enabled
def GstRtspServer.RTSPStream.get_ulpfec_enabled (self):
#python wrapper for 'gst_rtsp_stream_get_ulpfec_enabled'
Parameters:
gst_rtsp_stream_get_ulpfec_percentage
guint gst_rtsp_stream_get_ulpfec_percentage (GstRTSPStream * stream)
Parameters:
stream
–
the amount of redundancy applied when creating ULPFEC protection packets.
Since : 1.16
GstRtspServer.RTSPStream.prototype.get_ulpfec_percentage
function GstRtspServer.RTSPStream.prototype.get_ulpfec_percentage(): {
// javascript wrapper for 'gst_rtsp_stream_get_ulpfec_percentage'
}
Parameters:
the amount of redundancy applied when creating ULPFEC protection packets.
Since : 1.16
GstRtspServer.RTSPStream.get_ulpfec_percentage
def GstRtspServer.RTSPStream.get_ulpfec_percentage (self):
#python wrapper for 'gst_rtsp_stream_get_ulpfec_percentage'
Parameters:
the amount of redundancy applied when creating ULPFEC protection packets.
Since : 1.16
gst_rtsp_stream_get_ulpfec_pt
guint gst_rtsp_stream_get_ulpfec_pt (GstRTSPStream * stream)
Parameters:
stream
–
the payload type used for ULPFEC protection packets
Since : 1.16
GstRtspServer.RTSPStream.prototype.get_ulpfec_pt
function GstRtspServer.RTSPStream.prototype.get_ulpfec_pt(): {
// javascript wrapper for 'gst_rtsp_stream_get_ulpfec_pt'
}
Parameters:
the payload type used for ULPFEC protection packets
Since : 1.16
GstRtspServer.RTSPStream.get_ulpfec_pt
def GstRtspServer.RTSPStream.get_ulpfec_pt (self):
#python wrapper for 'gst_rtsp_stream_get_ulpfec_pt'
Parameters:
the payload type used for ULPFEC protection packets
Since : 1.16
gst_rtsp_stream_handle_keymgmt
gboolean gst_rtsp_stream_handle_keymgmt (GstRTSPStream * stream, const gchar * keymgmt)
Parse and handle a KeyMgmt header.
Since : 1.16
GstRtspServer.RTSPStream.prototype.handle_keymgmt
function GstRtspServer.RTSPStream.prototype.handle_keymgmt(keymgmt: String): {
// javascript wrapper for 'gst_rtsp_stream_handle_keymgmt'
}
Parse and handle a KeyMgmt header.
Parameters:
a keymgmt header
Since : 1.16
GstRtspServer.RTSPStream.handle_keymgmt
def GstRtspServer.RTSPStream.handle_keymgmt (self, keymgmt):
#python wrapper for 'gst_rtsp_stream_handle_keymgmt'
Parse and handle a KeyMgmt header.
Parameters:
a keymgmt header
Since : 1.16
gst_rtsp_stream_has_control
gboolean gst_rtsp_stream_has_control (GstRTSPStream * stream, const gchar * control)
Check if stream has the control string control.
TRUE is stream has control as the control string
GstRtspServer.RTSPStream.prototype.has_control
function GstRtspServer.RTSPStream.prototype.has_control(control: String): {
// javascript wrapper for 'gst_rtsp_stream_has_control'
}
Check if stream has the control string control.
Parameters:
a control string
GstRtspServer.RTSPStream.has_control
def GstRtspServer.RTSPStream.has_control (self, control):
#python wrapper for 'gst_rtsp_stream_has_control'
Check if stream has the control string control.
Parameters:
a control string
gst_rtsp_stream_is_bind_mcast_address
gboolean gst_rtsp_stream_is_bind_mcast_address (GstRTSPStream * stream)
Check if multicast sockets are configured to be bound to multicast addresses.
Parameters:
stream
–
TRUE if multicast sockets are configured to be bound to multicast addresses.
Since : 1.16
GstRtspServer.RTSPStream.prototype.is_bind_mcast_address
function GstRtspServer.RTSPStream.prototype.is_bind_mcast_address(): {
// javascript wrapper for 'gst_rtsp_stream_is_bind_mcast_address'
}
Check if multicast sockets are configured to be bound to multicast addresses.
Parameters:
Since : 1.16
GstRtspServer.RTSPStream.is_bind_mcast_address
def GstRtspServer.RTSPStream.is_bind_mcast_address (self):
#python wrapper for 'gst_rtsp_stream_is_bind_mcast_address'
Check if multicast sockets are configured to be bound to multicast addresses.
Parameters:
Since : 1.16
gst_rtsp_stream_is_blocking
gboolean gst_rtsp_stream_is_blocking (GstRTSPStream * stream)
Check if stream is blocking on a GstBuffer.
Parameters:
stream
–
TRUE if stream is blocking
GstRtspServer.RTSPStream.prototype.is_blocking
function GstRtspServer.RTSPStream.prototype.is_blocking(): {
// javascript wrapper for 'gst_rtsp_stream_is_blocking'
}
Check if stream is blocking on a Gst.Buffer.
Parameters:
GstRtspServer.RTSPStream.is_blocking
def GstRtspServer.RTSPStream.is_blocking (self):
#python wrapper for 'gst_rtsp_stream_is_blocking'
Check if stream is blocking on a Gst.Buffer.
Parameters:
gst_rtsp_stream_is_client_side
gboolean gst_rtsp_stream_is_client_side (GstRTSPStream * stream)
See gst_rtsp_stream_set_client_side
Parameters:
stream
–
TRUE if this GstRTSPStream is client-side.
GstRtspServer.RTSPStream.prototype.is_client_side
function GstRtspServer.RTSPStream.prototype.is_client_side(): {
// javascript wrapper for 'gst_rtsp_stream_is_client_side'
}
See GstRtspServer.RTSPStream.prototype.set_client_side
Parameters:
TRUE if this GstRtspServer.RTSPStream is client-side.
GstRtspServer.RTSPStream.is_client_side
def GstRtspServer.RTSPStream.is_client_side (self):
#python wrapper for 'gst_rtsp_stream_is_client_side'
See GstRtspServer.RTSPStream.set_client_side
Parameters:
TRUE if this GstRtspServer.RTSPStream is client-side.
gst_rtsp_stream_is_complete
gboolean gst_rtsp_stream_is_complete (GstRTSPStream * stream)
Checks whether the stream is complete, contains the receiver and the sender parts. As the stream contains sink(s) element(s), it's possible to perform seek operations on it.
Parameters:
stream
–
TRUE if the stream contains at least one sink element.
Since : 1.14
GstRtspServer.RTSPStream.prototype.is_complete
function GstRtspServer.RTSPStream.prototype.is_complete(): {
// javascript wrapper for 'gst_rtsp_stream_is_complete'
}
Checks whether the stream is complete, contains the receiver and the sender parts. As the stream contains sink(s) element(s), it's possible to perform seek operations on it.
Parameters:
Since : 1.14
GstRtspServer.RTSPStream.is_complete
def GstRtspServer.RTSPStream.is_complete (self):
#python wrapper for 'gst_rtsp_stream_is_complete'
Checks whether the stream is complete, contains the receiver and the sender parts. As the stream contains sink(s) element(s), it's possible to perform seek operations on it.
Parameters:
Since : 1.14
gst_rtsp_stream_is_receiver
gboolean gst_rtsp_stream_is_receiver (GstRTSPStream * stream)
Checks whether the stream is a receiver.
Parameters:
stream
–
Since : 1.14
GstRtspServer.RTSPStream.prototype.is_receiver
function GstRtspServer.RTSPStream.prototype.is_receiver(): {
// javascript wrapper for 'gst_rtsp_stream_is_receiver'
}
Checks whether the stream is a receiver.
Parameters:
Since : 1.14
GstRtspServer.RTSPStream.is_receiver
def GstRtspServer.RTSPStream.is_receiver (self):
#python wrapper for 'gst_rtsp_stream_is_receiver'
Checks whether the stream is a receiver.
Parameters:
Since : 1.14
gst_rtsp_stream_is_sender
gboolean gst_rtsp_stream_is_sender (GstRTSPStream * stream)
Checks whether the stream is a sender.
Parameters:
stream
–
Since : 1.14
GstRtspServer.RTSPStream.prototype.is_sender
function GstRtspServer.RTSPStream.prototype.is_sender(): {
// javascript wrapper for 'gst_rtsp_stream_is_sender'
}
Checks whether the stream is a sender.
Parameters:
Since : 1.14
GstRtspServer.RTSPStream.is_sender
def GstRtspServer.RTSPStream.is_sender (self):
#python wrapper for 'gst_rtsp_stream_is_sender'
Checks whether the stream is a sender.
Parameters:
Since : 1.14
gst_rtsp_stream_is_transport_supported
gboolean gst_rtsp_stream_is_transport_supported (GstRTSPStream * stream, GstRTSPTransport * transport)
Check if transport can be handled by stream
TRUE if transport can be handled by stream.
GstRtspServer.RTSPStream.prototype.is_transport_supported
function GstRtspServer.RTSPStream.prototype.is_transport_supported(transport: GstRtsp.RTSPTransport): {
// javascript wrapper for 'gst_rtsp_stream_is_transport_supported'
}
Check if transport can be handled by stream
Parameters:
GstRtspServer.RTSPStream.is_transport_supported
def GstRtspServer.RTSPStream.is_transport_supported (self, transport):
#python wrapper for 'gst_rtsp_stream_is_transport_supported'
Check if transport can be handled by stream
Parameters:
gst_rtsp_stream_join_bin
gboolean gst_rtsp_stream_join_bin (GstRTSPStream * stream, GstBin * bin, GstElement * rtpbin, GstState state)
Join the GstBin bin that contains the element rtpbin.
stream will link to rtpbin, which must be inside bin. The elements added to bin will be set to the state given in state.
Parameters:
stream
–
bin
(
[transfer: none])
–
a GstBin to join
rtpbin
(
[transfer: none])
–
a rtpbin element in bin
state
–
the target state of the new elements
TRUE on success.
GstRtspServer.RTSPStream.prototype.join_bin
function GstRtspServer.RTSPStream.prototype.join_bin(bin: Gst.Bin, rtpbin: Gst.Element, state: Gst.State): {
// javascript wrapper for 'gst_rtsp_stream_join_bin'
}
Join the Gst.Bin bin that contains the element rtpbin.
stream will link to rtpbin, which must be inside bin. The elements added to bin will be set to the state given in state.
Parameters:
a rtpbin element in bin
the target state of the new elements
GstRtspServer.RTSPStream.join_bin
def GstRtspServer.RTSPStream.join_bin (self, bin, rtpbin, state):
#python wrapper for 'gst_rtsp_stream_join_bin'
Join the Gst.Bin bin that contains the element rtpbin.
stream will link to rtpbin, which must be inside bin. The elements added to bin will be set to the state given in state.
Parameters:
a rtpbin element in bin
the target state of the new elements
gst_rtsp_stream_leave_bin
gboolean gst_rtsp_stream_leave_bin (GstRTSPStream * stream, GstBin * bin, GstElement * rtpbin)
Remove the elements of stream from bin.
Return: TRUE on success.
Parameters:
stream
–
bin
(
[transfer: none])
–
a GstBin
rtpbin
(
[transfer: none])
–
a rtpbin GstElement
GstRtspServer.RTSPStream.prototype.leave_bin
function GstRtspServer.RTSPStream.prototype.leave_bin(bin: Gst.Bin, rtpbin: Gst.Element): {
// javascript wrapper for 'gst_rtsp_stream_leave_bin'
}
Remove the elements of stream from bin.
Return: true on success.
GstRtspServer.RTSPStream.leave_bin
def GstRtspServer.RTSPStream.leave_bin (self, bin, rtpbin):
#python wrapper for 'gst_rtsp_stream_leave_bin'
Remove the elements of stream from bin.
Return: True on success.
gst_rtsp_stream_query_position
gboolean gst_rtsp_stream_query_position (GstRTSPStream * stream, gint64 * position)
Query the position of the stream in GST_FORMAT_TIME. This only considers the RTP parts of the pipeline and not the RTCP parts.
TRUE if the position could be queried
GstRtspServer.RTSPStream.prototype.query_position
function GstRtspServer.RTSPStream.prototype.query_position(): {
// javascript wrapper for 'gst_rtsp_stream_query_position'
}
Query the position of the stream in Gst.Format.TIME. This only considers the RTP parts of the pipeline and not the RTCP parts.
Parameters:
Returns a tuple made of:
GstRtspServer.RTSPStream.query_position
def GstRtspServer.RTSPStream.query_position (self):
#python wrapper for 'gst_rtsp_stream_query_position'
Query the position of the stream in Gst.Format.TIME. This only considers the RTP parts of the pipeline and not the RTCP parts.
Parameters:
Returns a tuple made of:
gst_rtsp_stream_query_stop
gboolean gst_rtsp_stream_query_stop (GstRTSPStream * stream, gint64 * stop)
Query the stop of the stream in GST_FORMAT_TIME. This only considers the RTP parts of the pipeline and not the RTCP parts.
TRUE if the stop could be queried
GstRtspServer.RTSPStream.prototype.query_stop
function GstRtspServer.RTSPStream.prototype.query_stop(): {
// javascript wrapper for 'gst_rtsp_stream_query_stop'
}
Query the stop of the stream in Gst.Format.TIME. This only considers the RTP parts of the pipeline and not the RTCP parts.
Parameters:
Returns a tuple made of:
GstRtspServer.RTSPStream.query_stop
def GstRtspServer.RTSPStream.query_stop (self):
#python wrapper for 'gst_rtsp_stream_query_stop'
Query the stop of the stream in Gst.Format.TIME. This only considers the RTP parts of the pipeline and not the RTCP parts.
Parameters:
Returns a tuple made of:
gst_rtsp_stream_recv_rtcp
GstFlowReturn gst_rtsp_stream_recv_rtcp (GstRTSPStream * stream, GstBuffer * buffer)
Handle an RTCP buffer for the stream. This method is usually called when a message has been received from a client using the TCP transport.
This function takes ownership of buffer.
a GstFlowReturn.
GstRtspServer.RTSPStream.prototype.recv_rtcp
function GstRtspServer.RTSPStream.prototype.recv_rtcp(buffer: Gst.Buffer): {
// javascript wrapper for 'gst_rtsp_stream_recv_rtcp'
}
Handle an RTCP buffer for the stream. This method is usually called when a message has been received from a client using the TCP transport.
This function takes ownership of buffer.
Parameters:
a GstFlowReturn.
GstRtspServer.RTSPStream.recv_rtcp
def GstRtspServer.RTSPStream.recv_rtcp (self, buffer):
#python wrapper for 'gst_rtsp_stream_recv_rtcp'
Handle an RTCP buffer for the stream. This method is usually called when a message has been received from a client using the TCP transport.
This function takes ownership of buffer.
Parameters:
a GstFlowReturn.
gst_rtsp_stream_recv_rtp
GstFlowReturn gst_rtsp_stream_recv_rtp (GstRTSPStream * stream, GstBuffer * buffer)
Handle an RTP buffer for the stream. This method is usually called when a message has been received from a client using the TCP transport.
This function takes ownership of buffer.
a GstFlowReturn.
GstRtspServer.RTSPStream.prototype.recv_rtp
function GstRtspServer.RTSPStream.prototype.recv_rtp(buffer: Gst.Buffer): {
// javascript wrapper for 'gst_rtsp_stream_recv_rtp'
}
Handle an RTP buffer for the stream. This method is usually called when a message has been received from a client using the TCP transport.
This function takes ownership of buffer.
Parameters:
a GstFlowReturn.
GstRtspServer.RTSPStream.recv_rtp
def GstRtspServer.RTSPStream.recv_rtp (self, buffer):
#python wrapper for 'gst_rtsp_stream_recv_rtp'
Handle an RTP buffer for the stream. This method is usually called when a message has been received from a client using the TCP transport.
This function takes ownership of buffer.
Parameters:
a GstFlowReturn.
gst_rtsp_stream_remove_transport
gboolean gst_rtsp_stream_remove_transport (GstRTSPStream * stream, GstRTSPStreamTransport * trans)
Remove the transport in trans from stream. The media of stream will not be sent to the values configured in trans.
stream must be joined to a bin.
trans must contain a valid GstRTSPTransport.
TRUE if trans was removed
GstRtspServer.RTSPStream.prototype.remove_transport
function GstRtspServer.RTSPStream.prototype.remove_transport(trans: GstRtspServer.RTSPStreamTransport): {
// javascript wrapper for 'gst_rtsp_stream_remove_transport'
}
Remove the transport in trans from stream. The media of stream will not be sent to the values configured in trans.
stream must be joined to a bin.
trans must contain a valid GstRtsp.RTSPTransport.
Parameters:
GstRtspServer.RTSPStream.remove_transport
def GstRtspServer.RTSPStream.remove_transport (self, trans):
#python wrapper for 'gst_rtsp_stream_remove_transport'
Remove the transport in trans from stream. The media of stream will not be sent to the values configured in trans.
stream must be joined to a bin.
trans must contain a valid GstRtsp.RTSPTransport.
Parameters:
gst_rtsp_stream_request_aux_receiver
GstElement * gst_rtsp_stream_request_aux_receiver (GstRTSPStream * stream, guint sessid)
Creating a rtxreceive bin
a GstElement.
Since : 1.16
GstRtspServer.RTSPStream.prototype.request_aux_receiver
function GstRtspServer.RTSPStream.prototype.request_aux_receiver(sessid: Number): {
// javascript wrapper for 'gst_rtsp_stream_request_aux_receiver'
}
Creating a rtxreceive bin
Parameters:
the session id
a Gst.Element.
Since : 1.16
GstRtspServer.RTSPStream.request_aux_receiver
def GstRtspServer.RTSPStream.request_aux_receiver (self, sessid):
#python wrapper for 'gst_rtsp_stream_request_aux_receiver'
Creating a rtxreceive bin
Parameters:
the session id
a Gst.Element.
Since : 1.16
gst_rtsp_stream_request_aux_sender
GstElement * gst_rtsp_stream_request_aux_sender (GstRTSPStream * stream, guint sessid)
Creating a rtxsend bin
a GstElement.
Since : 1.6
GstRtspServer.RTSPStream.prototype.request_aux_sender
function GstRtspServer.RTSPStream.prototype.request_aux_sender(sessid: Number): {
// javascript wrapper for 'gst_rtsp_stream_request_aux_sender'
}
Creating a rtxsend bin
Parameters:
the session id
a Gst.Element.
Since : 1.6
GstRtspServer.RTSPStream.request_aux_sender
def GstRtspServer.RTSPStream.request_aux_sender (self, sessid):
#python wrapper for 'gst_rtsp_stream_request_aux_sender'
Creating a rtxsend bin
Parameters:
the session id
a Gst.Element.
Since : 1.6
gst_rtsp_stream_request_ulpfec_decoder
GstElement * gst_rtsp_stream_request_ulpfec_decoder (GstRTSPStream * stream, GstElement * rtpbin, guint sessid)
Creating a rtpulpfecdec element
Parameters:
stream
–
rtpbin
–
sessid
–
a GstElement.
Since : 1.16
GstRtspServer.RTSPStream.prototype.request_ulpfec_decoder
function GstRtspServer.RTSPStream.prototype.request_ulpfec_decoder(rtpbin: Gst.Element, sessid: Number): {
// javascript wrapper for 'gst_rtsp_stream_request_ulpfec_decoder'
}
Creating a rtpulpfecdec element
Parameters:
a Gst.Element.
Since : 1.16
GstRtspServer.RTSPStream.request_ulpfec_decoder
def GstRtspServer.RTSPStream.request_ulpfec_decoder (self, rtpbin, sessid):
#python wrapper for 'gst_rtsp_stream_request_ulpfec_decoder'
Creating a rtpulpfecdec element
Parameters:
a Gst.Element.
Since : 1.16
gst_rtsp_stream_request_ulpfec_encoder
GstElement * gst_rtsp_stream_request_ulpfec_encoder (GstRTSPStream * stream, guint sessid)
Creating a rtpulpfecenc element
Parameters:
stream
–
sessid
–
a GstElement.
Since : 1.16
GstRtspServer.RTSPStream.prototype.request_ulpfec_encoder
function GstRtspServer.RTSPStream.prototype.request_ulpfec_encoder(sessid: Number): {
// javascript wrapper for 'gst_rtsp_stream_request_ulpfec_encoder'
}
Creating a rtpulpfecenc element
Parameters:
a Gst.Element.
Since : 1.16
GstRtspServer.RTSPStream.request_ulpfec_encoder
def GstRtspServer.RTSPStream.request_ulpfec_encoder (self, sessid):
#python wrapper for 'gst_rtsp_stream_request_ulpfec_encoder'
Creating a rtpulpfecenc element
Parameters:
a Gst.Element.
Since : 1.16
gst_rtsp_stream_reserve_address
GstRTSPAddress * gst_rtsp_stream_reserve_address (GstRTSPStream * stream, const gchar * address, guint port, guint n_ports, guint ttl)
Reserve address and port as the address and port of stream. The original GstRTSPAddress is cached and copy is returned, so freeing the return value won't release the address from the pool.
Parameters:
stream
–
address
–
an address
port
–
a port
n_ports
–
n_ports
ttl
–
a TTL
the GstRTSPAddress of stream or NULL when the address could not be reserved. gst_rtsp_address_free after usage.
GstRtspServer.RTSPStream.prototype.reserve_address
function GstRtspServer.RTSPStream.prototype.reserve_address(address: String, port: Number, n_ports: Number, ttl: Number): {
// javascript wrapper for 'gst_rtsp_stream_reserve_address'
}
Reserve address and port as the address and port of stream. The original GstRtspServer.RTSPAddress is cached and copy is returned, so freeing the return value won't release the address from the pool.
Parameters:
an address
a port
n_ports
a TTL
the GstRtspServer.RTSPAddress of stream or null when the address could not be reserved. GstRtspServer.RTSPAddress.prototype.free after usage.
GstRtspServer.RTSPStream.reserve_address
def GstRtspServer.RTSPStream.reserve_address (self, address, port, n_ports, ttl):
#python wrapper for 'gst_rtsp_stream_reserve_address'
Reserve address and port as the address and port of stream. The original GstRtspServer.RTSPAddress is cached and copy is returned, so freeing the return value won't release the address from the pool.
Parameters:
an address
a port
n_ports
a TTL
the GstRtspServer.RTSPAddress of stream or None when the address could not be reserved. GstRtspServer.RTSPAddress.free after usage.
gst_rtsp_stream_seekable
gboolean gst_rtsp_stream_seekable (GstRTSPStream * stream)
Checks whether the individual stream is seekable.
Parameters:
stream
–
Since : 1.14
GstRtspServer.RTSPStream.prototype.seekable
function GstRtspServer.RTSPStream.prototype.seekable(): {
// javascript wrapper for 'gst_rtsp_stream_seekable'
}
Checks whether the individual stream is seekable.
Parameters:
Since : 1.14
GstRtspServer.RTSPStream.seekable
def GstRtspServer.RTSPStream.seekable (self):
#python wrapper for 'gst_rtsp_stream_seekable'
Checks whether the individual stream is seekable.
Parameters:
Since : 1.14
gst_rtsp_stream_set_address_pool
gst_rtsp_stream_set_address_pool (GstRTSPStream * stream, GstRTSPAddressPool * pool)
configure pool to be used as the address pool of stream.
GstRtspServer.RTSPStream.prototype.set_address_pool
function GstRtspServer.RTSPStream.prototype.set_address_pool(pool: GstRtspServer.RTSPAddressPool): {
// javascript wrapper for 'gst_rtsp_stream_set_address_pool'
}
configure pool to be used as the address pool of stream.
Parameters:
GstRtspServer.RTSPStream.set_address_pool
def GstRtspServer.RTSPStream.set_address_pool (self, pool):
#python wrapper for 'gst_rtsp_stream_set_address_pool'
configure pool to be used as the address pool of stream.
Parameters:
gst_rtsp_stream_set_bind_mcast_address
gst_rtsp_stream_set_bind_mcast_address (GstRTSPStream * stream, gboolean bind_mcast_addr)
Decide whether the multicast socket should be bound to a multicast address or INADDR_ANY.
Since : 1.16
GstRtspServer.RTSPStream.prototype.set_bind_mcast_address
function GstRtspServer.RTSPStream.prototype.set_bind_mcast_address(bind_mcast_addr: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_bind_mcast_address'
}
Decide whether the multicast socket should be bound to a multicast address or INADDR_ANY.
Parameters:
the new value
Since : 1.16
GstRtspServer.RTSPStream.set_bind_mcast_address
def GstRtspServer.RTSPStream.set_bind_mcast_address (self, bind_mcast_addr):
#python wrapper for 'gst_rtsp_stream_set_bind_mcast_address'
Decide whether the multicast socket should be bound to a multicast address or INADDR_ANY.
Parameters:
the new value
Since : 1.16
gst_rtsp_stream_set_blocked
gboolean gst_rtsp_stream_set_blocked (GstRTSPStream * stream, gboolean blocked)
Blocks or unblocks the dataflow on stream.
TRUE on success
GstRtspServer.RTSPStream.prototype.set_blocked
function GstRtspServer.RTSPStream.prototype.set_blocked(blocked: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_blocked'
}
Blocks or unblocks the dataflow on stream.
Parameters:
boolean indicating we should block or unblock
GstRtspServer.RTSPStream.set_blocked
def GstRtspServer.RTSPStream.set_blocked (self, blocked):
#python wrapper for 'gst_rtsp_stream_set_blocked'
Blocks or unblocks the dataflow on stream.
Parameters:
boolean indicating we should block or unblock
gst_rtsp_stream_set_buffer_size
gst_rtsp_stream_set_buffer_size (GstRTSPStream * stream, guint size)
Set the size of the UDP transmission buffer (in bytes) Needs to be set before the stream is joined to a bin.
Since : 1.6
GstRtspServer.RTSPStream.prototype.set_buffer_size
function GstRtspServer.RTSPStream.prototype.set_buffer_size(size: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_buffer_size'
}
Set the size of the UDP transmission buffer (in bytes) Needs to be set before the stream is joined to a bin.
Parameters:
the buffer size
Since : 1.6
GstRtspServer.RTSPStream.set_buffer_size
def GstRtspServer.RTSPStream.set_buffer_size (self, size):
#python wrapper for 'gst_rtsp_stream_set_buffer_size'
Set the size of the UDP transmission buffer (in bytes) Needs to be set before the stream is joined to a bin.
Parameters:
the buffer size
Since : 1.6
gst_rtsp_stream_set_client_side
gst_rtsp_stream_set_client_side (GstRTSPStream * stream, gboolean client_side)
Sets the GstRTSPStream as a 'client side' stream - used for sending streams to an RTSP server via RECORD. This has the practical effect of changing which UDP port numbers are used when setting up the local side of the stream sending to be either the 'server' or 'client' pair of a configured UDP transport.
Parameters:
stream
–
client_side
–
TRUE if this GstRTSPStream is running on the 'client' side of an RTSP connection.
GstRtspServer.RTSPStream.prototype.set_client_side
function GstRtspServer.RTSPStream.prototype.set_client_side(client_side: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_client_side'
}
Sets the GstRtspServer.RTSPStream as a 'client side' stream - used for sending streams to an RTSP server via RECORD. This has the practical effect of changing which UDP port numbers are used when setting up the local side of the stream sending to be either the 'server' or 'client' pair of a configured UDP transport.
Parameters:
TRUE if this GstRtspServer.RTSPStream is running on the 'client' side of an RTSP connection.
GstRtspServer.RTSPStream.set_client_side
def GstRtspServer.RTSPStream.set_client_side (self, client_side):
#python wrapper for 'gst_rtsp_stream_set_client_side'
Sets the GstRtspServer.RTSPStream as a 'client side' stream - used for sending streams to an RTSP server via RECORD. This has the practical effect of changing which UDP port numbers are used when setting up the local side of the stream sending to be either the 'server' or 'client' pair of a configured UDP transport.
Parameters:
TRUE if this GstRtspServer.RTSPStream is running on the 'client' side of an RTSP connection.
gst_rtsp_stream_set_control
gst_rtsp_stream_set_control (GstRTSPStream * stream, const gchar * control)
Set the control string in stream.
GstRtspServer.RTSPStream.prototype.set_control
function GstRtspServer.RTSPStream.prototype.set_control(control: String): {
// javascript wrapper for 'gst_rtsp_stream_set_control'
}
Set the control string in stream.
Parameters:
a control string
GstRtspServer.RTSPStream.set_control
def GstRtspServer.RTSPStream.set_control (self, control):
#python wrapper for 'gst_rtsp_stream_set_control'
Set the control string in stream.
Parameters:
a control string
gst_rtsp_stream_set_dscp_qos
gst_rtsp_stream_set_dscp_qos (GstRTSPStream * stream, gint dscp_qos)
Configure the dscp qos of the outgoing sockets to dscp_qos.
GstRtspServer.RTSPStream.prototype.set_dscp_qos
function GstRtspServer.RTSPStream.prototype.set_dscp_qos(dscp_qos: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_dscp_qos'
}
Configure the dscp qos of the outgoing sockets to dscp_qos.
Parameters:
a new dscp qos value (0-63, or -1 to disable)
GstRtspServer.RTSPStream.set_dscp_qos
def GstRtspServer.RTSPStream.set_dscp_qos (self, dscp_qos):
#python wrapper for 'gst_rtsp_stream_set_dscp_qos'
Configure the dscp qos of the outgoing sockets to dscp_qos.
Parameters:
a new dscp qos value (0-63, or -1 to disable)
gst_rtsp_stream_set_max_mcast_ttl
gboolean gst_rtsp_stream_set_max_mcast_ttl (GstRTSPStream * stream, guint ttl)
Set the maximum time-to-live value of outgoing multicast packets.
TRUE if the requested ttl has been set successfully.
Since : 1.16
GstRtspServer.RTSPStream.prototype.set_max_mcast_ttl
function GstRtspServer.RTSPStream.prototype.set_max_mcast_ttl(ttl: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_max_mcast_ttl'
}
Set the maximum time-to-live value of outgoing multicast packets.
Parameters:
the new multicast ttl value
Since : 1.16
GstRtspServer.RTSPStream.set_max_mcast_ttl
def GstRtspServer.RTSPStream.set_max_mcast_ttl (self, ttl):
#python wrapper for 'gst_rtsp_stream_set_max_mcast_ttl'
Set the maximum time-to-live value of outgoing multicast packets.
Parameters:
the new multicast ttl value
Since : 1.16
gst_rtsp_stream_set_mtu
gst_rtsp_stream_set_mtu (GstRTSPStream * stream, guint mtu)
Configure the mtu in the payloader of stream to mtu.
GstRtspServer.RTSPStream.prototype.set_mtu
function GstRtspServer.RTSPStream.prototype.set_mtu(mtu: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_mtu'
}
Configure the mtu in the payloader of stream to mtu.
GstRtspServer.RTSPStream.set_mtu
def GstRtspServer.RTSPStream.set_mtu (self, mtu):
#python wrapper for 'gst_rtsp_stream_set_mtu'
Configure the mtu in the payloader of stream to mtu.
gst_rtsp_stream_set_multicast_iface
gst_rtsp_stream_set_multicast_iface (GstRTSPStream * stream, const gchar * multicast_iface)
configure multicast_iface to be used for stream.
Parameters:
stream
–
multicast_iface
(
[transfer: none][nullable])
–
a multicast interface name
GstRtspServer.RTSPStream.prototype.set_multicast_iface
function GstRtspServer.RTSPStream.prototype.set_multicast_iface(multicast_iface: String): {
// javascript wrapper for 'gst_rtsp_stream_set_multicast_iface'
}
configure multicast_iface to be used for stream.
Parameters:
a multicast interface name
GstRtspServer.RTSPStream.set_multicast_iface
def GstRtspServer.RTSPStream.set_multicast_iface (self, multicast_iface):
#python wrapper for 'gst_rtsp_stream_set_multicast_iface'
configure multicast_iface to be used for stream.
Parameters:
a multicast interface name
gst_rtsp_stream_set_profiles
gst_rtsp_stream_set_profiles (GstRTSPStream * stream, GstRTSPProfile profiles)
Configure the allowed profiles for stream.
GstRtspServer.RTSPStream.prototype.set_profiles
function GstRtspServer.RTSPStream.prototype.set_profiles(profiles: GstRtsp.RTSPProfile): {
// javascript wrapper for 'gst_rtsp_stream_set_profiles'
}
Configure the allowed profiles for stream.
Parameters:
the new profiles
GstRtspServer.RTSPStream.set_profiles
def GstRtspServer.RTSPStream.set_profiles (self, profiles):
#python wrapper for 'gst_rtsp_stream_set_profiles'
Configure the allowed profiles for stream.
Parameters:
the new profiles
gst_rtsp_stream_set_protocols
gst_rtsp_stream_set_protocols (GstRTSPStream * stream, GstRTSPLowerTrans protocols)
Configure the allowed lower transport for stream.
GstRtspServer.RTSPStream.prototype.set_protocols
function GstRtspServer.RTSPStream.prototype.set_protocols(protocols: GstRtsp.RTSPLowerTrans): {
// javascript wrapper for 'gst_rtsp_stream_set_protocols'
}
Configure the allowed lower transport for stream.
Parameters:
the new flags
GstRtspServer.RTSPStream.set_protocols
def GstRtspServer.RTSPStream.set_protocols (self, protocols):
#python wrapper for 'gst_rtsp_stream_set_protocols'
Configure the allowed lower transport for stream.
Parameters:
the new flags
gst_rtsp_stream_set_pt_map
gst_rtsp_stream_set_pt_map (GstRTSPStream * stream, guint pt, GstCaps * caps)
Configure a pt map between pt and caps.
GstRtspServer.RTSPStream.prototype.set_pt_map
function GstRtspServer.RTSPStream.prototype.set_pt_map(pt: Number, caps: Gst.Caps): {
// javascript wrapper for 'gst_rtsp_stream_set_pt_map'
}
Configure a pt map between pt and caps.
Parameters:
the pt
GstRtspServer.RTSPStream.set_pt_map
def GstRtspServer.RTSPStream.set_pt_map (self, pt, caps):
#python wrapper for 'gst_rtsp_stream_set_pt_map'
Configure a pt map between pt and caps.
Parameters:
the pt
gst_rtsp_stream_set_publish_clock_mode
gst_rtsp_stream_set_publish_clock_mode (GstRTSPStream * stream, GstRTSPPublishClockMode mode)
Sets if and how the stream clock should be published according to RFC7273.
Since : 1.8
GstRtspServer.RTSPStream.prototype.set_publish_clock_mode
function GstRtspServer.RTSPStream.prototype.set_publish_clock_mode(mode: GstRtspServer.RTSPPublishClockMode): {
// javascript wrapper for 'gst_rtsp_stream_set_publish_clock_mode'
}
Sets if and how the stream clock should be published according to RFC7273.
Parameters:
the clock publish mode
Since : 1.8
GstRtspServer.RTSPStream.set_publish_clock_mode
def GstRtspServer.RTSPStream.set_publish_clock_mode (self, mode):
#python wrapper for 'gst_rtsp_stream_set_publish_clock_mode'
Sets if and how the stream clock should be published according to RFC7273.
Parameters:
the clock publish mode
Since : 1.8
gst_rtsp_stream_set_rate_control
gst_rtsp_stream_set_rate_control (GstRTSPStream * stream, gboolean enabled)
Define whether stream will follow the Rate-Control=no behaviour as specified in the ONVIF replay spec.
Parameters:
stream
–
enabled
–
Since : 1.18
GstRtspServer.RTSPStream.prototype.set_rate_control
function GstRtspServer.RTSPStream.prototype.set_rate_control(enabled: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_rate_control'
}
Define whether stream will follow the Rate-Control=no behaviour as specified in the ONVIF replay spec.
Parameters:
Since : 1.18
GstRtspServer.RTSPStream.set_rate_control
def GstRtspServer.RTSPStream.set_rate_control (self, enabled):
#python wrapper for 'gst_rtsp_stream_set_rate_control'
Define whether stream will follow the Rate-Control=no behaviour as specified in the ONVIF replay spec.
Parameters:
Since : 1.18
gst_rtsp_stream_set_retransmission_pt
gst_rtsp_stream_set_retransmission_pt (GstRTSPStream * stream, guint rtx_pt)
Set the payload type (pt) for retransmission of this stream.
GstRtspServer.RTSPStream.prototype.set_retransmission_pt
function GstRtspServer.RTSPStream.prototype.set_retransmission_pt(rtx_pt: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_retransmission_pt'
}
Set the payload type (pt) for retransmission of this stream.
Parameters:
GstRtspServer.RTSPStream.set_retransmission_pt
def GstRtspServer.RTSPStream.set_retransmission_pt (self, rtx_pt):
#python wrapper for 'gst_rtsp_stream_set_retransmission_pt'
Set the payload type (pt) for retransmission of this stream.
gst_rtsp_stream_set_retransmission_time
gst_rtsp_stream_set_retransmission_time (GstRTSPStream * stream, GstClockTime time)
Set the amount of time to store retransmission packets.
GstRtspServer.RTSPStream.prototype.set_retransmission_time
function GstRtspServer.RTSPStream.prototype.set_retransmission_time(time: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_retransmission_time'
}
Set the amount of time to store retransmission packets.
GstRtspServer.RTSPStream.set_retransmission_time
def GstRtspServer.RTSPStream.set_retransmission_time (self, time):
#python wrapper for 'gst_rtsp_stream_set_retransmission_time'
Set the amount of time to store retransmission packets.
gst_rtsp_stream_set_seqnum_offset
gst_rtsp_stream_set_seqnum_offset (GstRTSPStream * stream, guint16 seqnum)
Parameters:
stream
–
seqnum
–
GstRtspServer.RTSPStream.prototype.set_seqnum_offset
function GstRtspServer.RTSPStream.prototype.set_seqnum_offset(seqnum: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_seqnum_offset'
}
Parameters:
GstRtspServer.RTSPStream.set_seqnum_offset
def GstRtspServer.RTSPStream.set_seqnum_offset (self, seqnum):
#python wrapper for 'gst_rtsp_stream_set_seqnum_offset'
Parameters:
gst_rtsp_stream_set_ulpfec_percentage
gst_rtsp_stream_set_ulpfec_percentage (GstRTSPStream * stream, guint percentage)
Sets the amount of redundancy to apply when creating ULPFEC protection packets.
Parameters:
stream
–
percentage
–
Since : 1.16
GstRtspServer.RTSPStream.prototype.set_ulpfec_percentage
function GstRtspServer.RTSPStream.prototype.set_ulpfec_percentage(percentage: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_ulpfec_percentage'
}
Sets the amount of redundancy to apply when creating ULPFEC protection packets.
Parameters:
Since : 1.16
GstRtspServer.RTSPStream.set_ulpfec_percentage
def GstRtspServer.RTSPStream.set_ulpfec_percentage (self, percentage):
#python wrapper for 'gst_rtsp_stream_set_ulpfec_percentage'
Sets the amount of redundancy to apply when creating ULPFEC protection packets.
Parameters:
Since : 1.16
gst_rtsp_stream_set_ulpfec_pt
gst_rtsp_stream_set_ulpfec_pt (GstRTSPStream * stream, guint pt)
Set the payload type to be used for ULPFEC protection packets
Parameters:
stream
–
pt
–
Since : 1.16
GstRtspServer.RTSPStream.prototype.set_ulpfec_pt
function GstRtspServer.RTSPStream.prototype.set_ulpfec_pt(pt: Number): {
// javascript wrapper for 'gst_rtsp_stream_set_ulpfec_pt'
}
Set the payload type to be used for ULPFEC protection packets
Parameters:
Since : 1.16
GstRtspServer.RTSPStream.set_ulpfec_pt
def GstRtspServer.RTSPStream.set_ulpfec_pt (self, pt):
#python wrapper for 'gst_rtsp_stream_set_ulpfec_pt'
Set the payload type to be used for ULPFEC protection packets
Parameters:
Since : 1.16
gst_rtsp_stream_transport_filter
GList * gst_rtsp_stream_transport_filter (GstRTSPStream * stream, GstRTSPStreamTransportFilterFunc func, gpointer user_data)
Call func for each transport managed by stream. The result value of func determines what happens to the transport. func will be called with stream locked so no further actions on stream can be performed from func.
If func returns GST_RTSP_FILTER_REMOVE, the transport will be removed from stream.
If func returns GST_RTSP_FILTER_KEEP, the transport will remain in stream.
If func returns GST_RTSP_FILTER_REF, the transport will remain in stream but will also be added with an additional ref to the result GList of this function..
When func is NULL, GST_RTSP_FILTER_REF will be assumed for each transport.
Parameters:
stream
–
func
(
[scope call][allow-none][closure])
–
a callback
user_data
–
user data passed to func
a GList with all transports for which func returned GST_RTSP_FILTER_REF. After usage, each element in the GList should be unreffed before the list is freed.
GstRtspServer.RTSPStream.prototype.transport_filter
function GstRtspServer.RTSPStream.prototype.transport_filter(func: GstRtspServer.RTSPStreamTransportFilterFunc, user_data: Object): {
// javascript wrapper for 'gst_rtsp_stream_transport_filter'
}
Call func for each transport managed by stream. The result value of func determines what happens to the transport. func will be called with stream locked so no further actions on stream can be performed from func.
If func returns GstRtspServer.RTSPFilterResult.REMOVE, the transport will be removed from stream.
If func returns GstRtspServer.RTSPFilterResult.KEEP, the transport will remain in stream.
If func returns GstRtspServer.RTSPFilterResult.REF, the transport will remain in stream but will also be added with an additional ref to the result GLib.List of this function..
When func is null, GstRtspServer.RTSPFilterResult.REF will be assumed for each transport.
Parameters:
a callback
user data passed to func
a GLib.List with all transports for which func returned GstRtspServer.RTSPFilterResult.REF. After usage, each element in the GLib.List should be unreffed before the list is freed.
GstRtspServer.RTSPStream.transport_filter
def GstRtspServer.RTSPStream.transport_filter (self, func, *user_data):
#python wrapper for 'gst_rtsp_stream_transport_filter'
Call func for each transport managed by stream. The result value of func determines what happens to the transport. func will be called with stream locked so no further actions on stream can be performed from func.
If func returns GstRtspServer.RTSPFilterResult.REMOVE, the transport will be removed from stream.
If func returns GstRtspServer.RTSPFilterResult.KEEP, the transport will remain in stream.
If func returns GstRtspServer.RTSPFilterResult.REF, the transport will remain in stream but will also be added with an additional ref to the result GLib.List of this function..
When func is None, GstRtspServer.RTSPFilterResult.REF will be assumed for each transport.
Parameters:
a callback
user data passed to func
a GLib.List with all transports for which func returned GstRtspServer.RTSPFilterResult.REF. After usage, each element in the GLib.List should be unreffed before the list is freed.
gst_rtsp_stream_unblock_linked
gboolean gst_rtsp_stream_unblock_linked (GstRTSPStream * stream)
Parameters:
stream
–
GstRtspServer.RTSPStream.prototype.unblock_linked
function GstRtspServer.RTSPStream.prototype.unblock_linked(): {
// javascript wrapper for 'gst_rtsp_stream_unblock_linked'
}
Parameters:
GstRtspServer.RTSPStream.unblock_linked
def GstRtspServer.RTSPStream.unblock_linked (self):
#python wrapper for 'gst_rtsp_stream_unblock_linked'
Parameters:
gst_rtsp_stream_unblock_rtcp
gst_rtsp_stream_unblock_rtcp (GstRTSPStream * stream)
Remove blocking probe from the RTCP source. When creating an UDP source for RTCP it is initially blocked until this function is called. This functions should be called once the pipeline is ready for handling RTCP packets.
Parameters:
stream
–
Since : 1.20
GstRtspServer.RTSPStream.prototype.unblock_rtcp
function GstRtspServer.RTSPStream.prototype.unblock_rtcp(): {
// javascript wrapper for 'gst_rtsp_stream_unblock_rtcp'
}
Remove blocking probe from the RTCP source. When creating an UDP source for RTCP it is initially blocked until this function is called. This functions should be called once the pipeline is ready for handling RTCP packets.
Parameters:
Since : 1.20
GstRtspServer.RTSPStream.unblock_rtcp
def GstRtspServer.RTSPStream.unblock_rtcp (self):
#python wrapper for 'gst_rtsp_stream_unblock_rtcp'
Remove blocking probe from the RTCP source. When creating an UDP source for RTCP it is initially blocked until this function is called. This functions should be called once the pipeline is ready for handling RTCP packets.
Parameters:
Since : 1.20
gst_rtsp_stream_update_crypto
gboolean gst_rtsp_stream_update_crypto (GstRTSPStream * stream, guint ssrc, GstCaps * crypto)
Update the new crypto information for ssrc in stream. If information for ssrc did not exist, it will be added. If information for ssrc existed, it will be replaced. If crypto is NULL, it will be removed from stream.
Parameters:
stream
–
ssrc
–
the SSRC
crypto
(
[transfer: none][allow-none])
–
a GstCaps with crypto info
TRUE if crypto could be updated
GstRtspServer.RTSPStream.prototype.update_crypto
function GstRtspServer.RTSPStream.prototype.update_crypto(ssrc: Number, crypto: Gst.Caps): {
// javascript wrapper for 'gst_rtsp_stream_update_crypto'
}
Update the new crypto information for ssrc in stream. If information for ssrc did not exist, it will be added. If information for ssrc existed, it will be replaced. If crypto is null, it will be removed from stream.
Parameters:
the SSRC
GstRtspServer.RTSPStream.update_crypto
def GstRtspServer.RTSPStream.update_crypto (self, ssrc, crypto):
#python wrapper for 'gst_rtsp_stream_update_crypto'
Update the new crypto information for ssrc in stream. If information for ssrc did not exist, it will be added. If information for ssrc existed, it will be replaced. If crypto is None, it will be removed from stream.
Parameters:
the SSRC
gst_rtsp_stream_verify_mcast_ttl
gboolean gst_rtsp_stream_verify_mcast_ttl (GstRTSPStream * stream, guint ttl)
Check if the requested multicast ttl value is allowed.
TRUE if the requested ttl value is allowed.
Since : 1.16
GstRtspServer.RTSPStream.prototype.verify_mcast_ttl
function GstRtspServer.RTSPStream.prototype.verify_mcast_ttl(ttl: Number): {
// javascript wrapper for 'gst_rtsp_stream_verify_mcast_ttl'
}
Check if the requested multicast ttl value is allowed.
Parameters:
a requested multicast ttl
TRUE if the requested ttl value is allowed.
Since : 1.16
GstRtspServer.RTSPStream.verify_mcast_ttl
def GstRtspServer.RTSPStream.verify_mcast_ttl (self, ttl):
#python wrapper for 'gst_rtsp_stream_verify_mcast_ttl'
Check if the requested multicast ttl value is allowed.
Parameters:
a requested multicast ttl
TRUE if the requested ttl value is allowed.
Since : 1.16
Signals
new-rtcp-encoder
new_rtcp_encoder_callback (GstRTSPStream * self, GstElement * object, gpointer user_data)
Parameters:
self
–
object
–
user_data
–
Flags: Run Last
new-rtcp-encoder
function new_rtcp_encoder_callback(self: GstRtspServer.RTSPStream, object: Gst.Element, user_data: Object): {
// javascript callback for the 'new-rtcp-encoder' signal
}
Parameters:
Flags: Run Last
new-rtcp-encoder
def new_rtcp_encoder_callback (self, object, *user_data):
#python callback for the 'new-rtcp-encoder' signal
Parameters:
Flags: Run Last
new-rtp-encoder
new_rtp_encoder_callback (GstRTSPStream * self, GstElement * object, gpointer user_data)
Parameters:
self
–
object
–
user_data
–
Flags: Run Last
new-rtp-encoder
function new_rtp_encoder_callback(self: GstRtspServer.RTSPStream, object: Gst.Element, user_data: Object): {
// javascript callback for the 'new-rtp-encoder' signal
}
Parameters:
Flags: Run Last
new-rtp-encoder
def new_rtp_encoder_callback (self, object, *user_data):
#python callback for the 'new-rtp-encoder' signal
Parameters:
Flags: Run Last
new-rtp-rtcp-decoder
new_rtp_rtcp_decoder_callback (GstRTSPStream * self, GstElement * object, gpointer user_data)
Parameters:
self
–
object
–
user_data
–
Flags: Run Last
new-rtp-rtcp-decoder
function new_rtp_rtcp_decoder_callback(self: GstRtspServer.RTSPStream, object: Gst.Element, user_data: Object): {
// javascript callback for the 'new-rtp-rtcp-decoder' signal
}
Parameters:
Flags: Run Last
new-rtp-rtcp-decoder
def new_rtp_rtcp_decoder_callback (self, object, *user_data):
#python callback for the 'new-rtp-rtcp-decoder' signal
Parameters:
Flags: Run Last
Properties
Function Macros
GST_RTSP_STREAM_CAST
#define GST_RTSP_STREAM_CAST(obj) ((GstRTSPStream*)(obj))
GST_RTSP_STREAM_CLASS_CAST
#define GST_RTSP_STREAM_CLASS_CAST(klass) ((GstRTSPStreamClass*)(klass))
Callbacks
GstRTSPStreamTransportFilterFunc
GstRTSPFilterResult (*GstRTSPStreamTransportFilterFunc) (GstRTSPStream * stream, GstRTSPStreamTransport * trans, gpointer user_data)
This function will be called by the gst_rtsp_stream_transport_filter. An implementation should return a value of GstRTSPFilterResult.
When this function returns GST_RTSP_FILTER_REMOVE, trans will be removed from stream.
A return value of GST_RTSP_FILTER_KEEP will leave trans untouched in stream.
A value of GST_RTSP_FILTER_REF will add trans to the result GList of gst_rtsp_stream_transport_filter.
Parameters:
stream
–
a GstRTSPStream object
trans
–
a GstRTSPStreamTransport in stream
user_data
–
user data that has been given to gst_rtsp_stream_transport_filter
GstRtspServer.RTSPStreamTransportFilterFunc
function GstRtspServer.RTSPStreamTransportFilterFunc(stream: GstRtspServer.RTSPStream, trans: GstRtspServer.RTSPStreamTransport, user_data: Object): {
// javascript wrapper for 'GstRTSPStreamTransportFilterFunc'
}
This function will be called by the GstRtspServer.RTSPStream.prototype.transport_filter. An implementation should return a value of GstRtspServer.RTSPFilterResult.
When this function returns GstRtspServer.RTSPFilterResult.REMOVE, trans will be removed from stream.
A return value of GstRtspServer.RTSPFilterResult.KEEP will leave trans untouched in stream.
A value of GstRtspServer.RTSPFilterResult.REF will add trans to the result GLib.List of GstRtspServer.RTSPStream.prototype.transport_filter.
Parameters:
a GstRtspServer.RTSPStream object
a GstRtspServer.RTSPStreamTransport in stream
user data that has been given to GstRtspServer.RTSPStream.prototype.transport_filter
GstRtspServer.RTSPStreamTransportFilterFunc
def GstRtspServer.RTSPStreamTransportFilterFunc (stream, trans, *user_data):
#python wrapper for 'GstRTSPStreamTransportFilterFunc'
This function will be called by the GstRtspServer.RTSPStream.transport_filter. An implementation should return a value of GstRtspServer.RTSPFilterResult.
When this function returns GstRtspServer.RTSPFilterResult.REMOVE, trans will be removed from stream.
A return value of GstRtspServer.RTSPFilterResult.KEEP will leave trans untouched in stream.
A value of GstRtspServer.RTSPFilterResult.REF will add trans to the result GLib.List of GstRtspServer.RTSPStream.transport_filter.
Parameters:
a GstRtspServer.RTSPStream object
a GstRtspServer.RTSPStreamTransport in stream
user data that has been given to GstRtspServer.RTSPStream.transport_filter
The results of the search are