rtsp media
a GstRtspServer.RTSPMedia contains the complete GStreamer pipeline to manage the
streaming to the clients. The actual data transfer is done by the
GstRtspServer.RTSPStream objects that are created and exposed by the GstRtspServer.RTSPMedia.
The GstRtspServer.RTSPMedia is usually created from a GstRtspServer.RTSPMediaFactory when the
client does a DESCRIBE or SETUP of a resource.
A media is created with GstRtspServer.RTSPMedia.prototype.new that takes the element that will
provide the streaming elements. For each of the streams, a new GstRtspServer.RTSPStream
object needs to be made with the GstRtspServer.RTSPMedia.prototype.create_stream which takes
the payloader element and the source pad that produces the RTP stream.
The pipeline of the media is set to PAUSED with GstRtspServer.RTSPMedia.prototype.prepare. The
prepare method will add rtpbin and sinks and sources to send and receive RTP
and RTCP packets from the clients. Each stream srcpad is connected to an
input into the internal rtpbin.
It is also possible to dynamically create GstRtspServer.RTSPStream objects during the
prepare phase. With GstRtspServer.RTSPMedia.prototype.get_status you can check the status of
the prepare phase.
After the media is prepared, it is ready for streaming. It will usually be
managed in a session with GstRtspServer.RTSPSession.prototype.manage_media. See
GstRtspServer.RTSPSession and GstRtspServer.RTSPSessionMedia.
The state of the media can be controlled with gst_rtsp_media_set_state ().
Seeking can be done with GstRtspServer.RTSPMedia.prototype.seek, or GstRtspServer.RTSPMedia.prototype.seek_full
or GstRtspServer.RTSPMedia.prototype.seek_trickmode for finer control of the seek.
With GstRtspServer.RTSPMedia.prototype.unprepare the pipeline is stopped and shut down. When
GstRtspServer.RTSPMedia.prototype.set_eos_shutdown an EOS will be sent to the pipeline to
cleanly shut down.
With GstRtspServer.RTSPMedia.prototype.set_shared, the media can be shared between multiple
clients. With GstRtspServer.RTSPMedia.prototype.set_reusable you can control if the pipeline
can be prepared again after an unprepare.
Last reviewed on 2013-07-11 (1.0.0)
gst_rtsp_media_new
GstRTSPMedia *
gst_rtsp_media_new (GstElement * element)
Create a new GstRTSPMedia instance. element is the bin element that
provides the different streams. The GstRTSPMedia object contains the
element to produce RTP data for one or more related (audio/video/..)
streams.
Ownership is taken of element.
function GstRtspServer.RTSPMedia.prototype.new(element: Gst.Element): {
}
Create a new GstRtspServer.RTSPMedia instance. element is the bin element that
provides the different streams. The GstRtspServer.RTSPMedia object contains the
element to produce RTP data for one or more related (audio/video/..)
streams.
Ownership is taken of element.
GstRtspServer.RTSPMedia.new
def GstRtspServer.RTSPMedia.new (element):
Create a new GstRtspServer.RTSPMedia instance. element is the bin element that
provides the different streams. The GstRtspServer.RTSPMedia object contains the
element to produce RTP data for one or more related (audio/video/..)
streams.
Ownership is taken of element.
gst_rtsp_media_can_be_shared
gboolean
gst_rtsp_media_can_be_shared (GstRTSPMedia * media)
Check if the pipeline for media can be shared between multiple clients.
This checks if the media is shareable and whether it is either reusable or
was never unprepared before.
The function must be called with gst_rtsp_media_lock.
Returns
–
TRUE if the media can be shared between clients.
Since : 1.24
function GstRtspServer.RTSPMedia.prototype.can_be_shared(): {
}
Check if the pipeline for media can be shared between multiple clients.
This checks if the media is shareable and whether it is either reusable or
was never unprepared before.
The function must be called with GstRtspServer.RTSPMedia.prototype.lock.
true if the media can be shared between clients.
Since : 1.24
GstRtspServer.RTSPMedia.can_be_shared
def GstRtspServer.RTSPMedia.can_be_shared (self):
Check if the pipeline for media can be shared between multiple clients.
This checks if the media is shareable and whether it is either reusable or
was never unprepared before.
The function must be called with GstRtspServer.RTSPMedia.lock.
True if the media can be shared between clients.
Since : 1.24
gst_rtsp_media_collect_streams
gst_rtsp_media_collect_streams (GstRTSPMedia * media)
Find all payloader elements, they should be named pay%d in the
element of media, and create GstRTSPStream for them.
Collect all dynamic elements, named dynpay%d, and add them to
the list of dynamic elements.
Find all depayloader elements, they should be named depay%d in the
element of media, and create GstRTSPStream for them.
function GstRtspServer.RTSPMedia.prototype.collect_streams(): {
}
Find all payloader elements, they should be named pay%d in the
element of media, and create GstRtspServer.RTSPStream for them.
Collect all dynamic elements, named dynpay%d, and add them to
the list of dynamic elements.
Find all depayloader elements, they should be named depay%d in the
element of media, and create GstRtspServer.RTSPStream for them.
GstRtspServer.RTSPMedia.collect_streams
def GstRtspServer.RTSPMedia.collect_streams (self):
Find all payloader elements, they should be named pay%d in the
element of media, and create GstRtspServer.RTSPStream for them.
Collect all dynamic elements, named dynpay%d, and add them to
the list of dynamic elements.
Find all depayloader elements, they should be named depay%d in the
element of media, and create GstRtspServer.RTSPStream for them.
gst_rtsp_media_complete_pipeline
gboolean
gst_rtsp_media_complete_pipeline (GstRTSPMedia * media,
GPtrArray * transports)
Add a receiver and sender parts to the pipeline based on the transport from
SETUP.
Returns
–
TRUE if the media pipeline has been sucessfully updated.
Since : 1.14
function GstRtspServer.RTSPMedia.prototype.complete_pipeline(transports: [ GstRtsp.RTSPTransport ]): {
}
Add a receiver and sender parts to the pipeline based on the transport from
SETUP.
true if the media pipeline has been sucessfully updated.
Since : 1.14
GstRtspServer.RTSPMedia.complete_pipeline
def GstRtspServer.RTSPMedia.complete_pipeline (self, transports):
Add a receiver and sender parts to the pipeline based on the transport from
SETUP.
True if the media pipeline has been sucessfully updated.
Since : 1.14
gst_rtsp_media_create_stream
GstRTSPStream *
gst_rtsp_media_create_stream (GstRTSPMedia * media,
GstElement * payloader,
GstPad * pad)
Create a new stream in media that provides RTP data on pad.
pad should be a pad of an element inside media->element.
Returns
(
[transfer: none])
–
a new GstRTSPStream that remains valid for as long
as media exists.
function GstRtspServer.RTSPMedia.prototype.create_stream(payloader: Gst.Element, pad: Gst.Pad): {
}
Create a new stream in media that provides RTP data on pad.
pad should be a pad of an element inside media->element.
GstRtspServer.RTSPMedia.create_stream
def GstRtspServer.RTSPMedia.create_stream (self, payloader, pad):
Create a new stream in media that provides RTP data on pad.
pad should be a pad of an element inside media->element.
gst_rtsp_media_find_stream
GstRTSPStream *
gst_rtsp_media_find_stream (GstRTSPMedia * media,
const gchar * control)
Find a stream in media with control as the control uri.
Parameters:
control
–
the control of the stream
Returns
(
[nullable][transfer: none])
–
the GstRTSPStream with
control uri control or NULL when a stream with that control did
not exist.
function GstRtspServer.RTSPMedia.prototype.find_stream(control: String): {
}
Find a stream in media with control as the control uri.
Parameters:
the control of the stream
GstRtspServer.RTSPMedia.find_stream
def GstRtspServer.RTSPMedia.find_stream (self, control):
Find a stream in media with control as the control uri.
Parameters:
the control of the stream
gst_rtsp_media_get_base_time
GstClockTime
gst_rtsp_media_get_base_time (GstRTSPMedia * media)
Get the base_time that is used by the pipeline in media.
media must be prepared before this method returns a valid base_time.
Returns
–
the base_time used by media.
function GstRtspServer.RTSPMedia.prototype.get_base_time(): {
}
Get the base_time that is used by the pipeline in media.
media must be prepared before this method returns a valid base_time.
the base_time used by media.
GstRtspServer.RTSPMedia.get_base_time
def GstRtspServer.RTSPMedia.get_base_time (self):
Get the base_time that is used by the pipeline in media.
media must be prepared before this method returns a valid base_time.
the base_time used by media.
gst_rtsp_media_get_buffer_size
guint
gst_rtsp_media_get_buffer_size (GstRTSPMedia * media)
Get the kernel UDP buffer size.
Returns
–
the kernel UDP buffer size.
function GstRtspServer.RTSPMedia.prototype.get_buffer_size(): {
}
Get the kernel UDP buffer size.
the kernel UDP buffer size.
GstRtspServer.RTSPMedia.get_buffer_size
def GstRtspServer.RTSPMedia.get_buffer_size (self):
Get the kernel UDP buffer size.
the kernel UDP buffer size.
gst_rtsp_media_get_clock
GstClock *
gst_rtsp_media_get_clock (GstRTSPMedia * media)
Get the clock that is used by the pipeline in media.
media must be prepared before this method returns a valid clock object.
Returns
(
[transfer: full][nullable])
–
the GstClock used by media. unref after usage.
function GstRtspServer.RTSPMedia.prototype.get_clock(): {
}
Get the clock that is used by the pipeline in media.
media must be prepared before this method returns a valid clock object.
the Gst.Clock used by media. unref after usage.
GstRtspServer.RTSPMedia.get_clock
def GstRtspServer.RTSPMedia.get_clock (self):
Get the clock that is used by the pipeline in media.
media must be prepared before this method returns a valid clock object.
the Gst.Clock used by media. unref after usage.
gst_rtsp_media_get_dscp_qos
gint
gst_rtsp_media_get_dscp_qos (GstRTSPMedia * media)
Get the configured DSCP QoS of attached media.
Returns
–
the DSCP QoS value of attached streams or -1 if disabled.
Since : 1.18
function GstRtspServer.RTSPMedia.prototype.get_dscp_qos(): {
}
Get the configured DSCP QoS of attached media.
the DSCP QoS value of attached streams or -1 if disabled.
Since : 1.18
GstRtspServer.RTSPMedia.get_dscp_qos
def GstRtspServer.RTSPMedia.get_dscp_qos (self):
Get the configured DSCP QoS of attached media.
the DSCP QoS value of attached streams or -1 if disabled.
Since : 1.18
gst_rtsp_media_get_ensure_keyunit_on_start
gboolean
gst_rtsp_media_get_ensure_keyunit_on_start (GstRTSPMedia * media)
Get ensure-keyunit-on-start flag.
Returns
–
The ensure-keyunit-on-start flag.
Since : 1.24
function GstRtspServer.RTSPMedia.prototype.get_ensure_keyunit_on_start(): {
}
Get ensure-keyunit-on-start flag.
The ensure-keyunit-on-start flag.
Since : 1.24
GstRtspServer.RTSPMedia.get_ensure_keyunit_on_start
def GstRtspServer.RTSPMedia.get_ensure_keyunit_on_start (self):
Get ensure-keyunit-on-start flag.
The ensure-keyunit-on-start flag.
Since : 1.24
gst_rtsp_media_get_ensure_keyunit_on_start_timeout
guint
gst_rtsp_media_get_ensure_keyunit_on_start_timeout (GstRTSPMedia * media)
Get ensure-keyunit-on-start-timeout time.
Returns
–
The ensure-keyunit-on-start-timeout time.
Since : 1.24
function GstRtspServer.RTSPMedia.prototype.get_ensure_keyunit_on_start_timeout(): {
}
Get ensure-keyunit-on-start-timeout time.
The ensure-keyunit-on-start-timeout time.
Since : 1.24
GstRtspServer.RTSPMedia.get_ensure_keyunit_on_start_timeout
def GstRtspServer.RTSPMedia.get_ensure_keyunit_on_start_timeout (self):
Get ensure-keyunit-on-start-timeout time.
The ensure-keyunit-on-start-timeout time.
Since : 1.24
gst_rtsp_media_get_latency
guint
gst_rtsp_media_get_latency (GstRTSPMedia * media)
Get the latency that is used for receiving media.
Returns
–
latency in milliseconds
function GstRtspServer.RTSPMedia.prototype.get_latency(): {
}
Get the latency that is used for receiving media.
GstRtspServer.RTSPMedia.get_latency
def GstRtspServer.RTSPMedia.get_latency (self):
Get the latency that is used for receiving media.
gst_rtsp_media_get_max_mcast_ttl
guint
gst_rtsp_media_get_max_mcast_ttl (GstRTSPMedia * media)
Get the the maximum time-to-live value of outgoing multicast packets.
Returns
–
the maximum time-to-live value of outgoing multicast packets.
Since : 1.16
function GstRtspServer.RTSPMedia.prototype.get_max_mcast_ttl(): {
}
Get the the maximum time-to-live value of outgoing multicast packets.
the maximum time-to-live value of outgoing multicast packets.
Since : 1.16
GstRtspServer.RTSPMedia.get_max_mcast_ttl
def GstRtspServer.RTSPMedia.get_max_mcast_ttl (self):
Get the the maximum time-to-live value of outgoing multicast packets.
the maximum time-to-live value of outgoing multicast packets.
Since : 1.16
gst_rtsp_media_get_multicast_iface
gchar *
gst_rtsp_media_get_multicast_iface (GstRTSPMedia * media)
Get the multicast interface used for media.
Returns
(
[transfer: full][nullable])
–
the multicast interface for media.
g_free after usage.
function GstRtspServer.RTSPMedia.prototype.get_multicast_iface(): {
}
Get the multicast interface used for media.
GstRtspServer.RTSPMedia.get_multicast_iface
def GstRtspServer.RTSPMedia.get_multicast_iface (self):
Get the multicast interface used for media.
the multicast interface for media.
GLib.free after usage.
gst_rtsp_media_get_publish_clock_mode
GstRTSPPublishClockMode
gst_rtsp_media_get_publish_clock_mode (GstRTSPMedia * media)
Gets if and how the media clock should be published according to RFC7273.
Returns
–
The GstRTSPPublishClockMode
Since : 1.8
function GstRtspServer.RTSPMedia.prototype.get_publish_clock_mode(): {
}
Gets if and how the media clock should be published according to RFC7273.
The GstRTSPPublishClockMode
Since : 1.8
GstRtspServer.RTSPMedia.get_publish_clock_mode
def GstRtspServer.RTSPMedia.get_publish_clock_mode (self):
Gets if and how the media clock should be published according to RFC7273.
The GstRTSPPublishClockMode
Since : 1.8
gst_rtsp_media_get_range_string
gchar *
gst_rtsp_media_get_range_string (GstRTSPMedia * media,
gboolean play,
GstRTSPRangeUnit unit)
Get the current range as a string. media must be prepared with
gst_rtsp_media_prepare ().
Parameters:
play
–
for the PLAY request
unit
–
the unit to use for the string
Returns
(
[transfer: full][nullable])
–
The range as a string, g_free after usage.
function GstRtspServer.RTSPMedia.prototype.get_range_string(play: Number, unit: GstRtsp.RTSPRangeUnit): {
}
Get the current range as a string. media must be prepared with
gst_rtsp_media_prepare ().
Parameters:
the unit to use for the string
GstRtspServer.RTSPMedia.get_range_string
def GstRtspServer.RTSPMedia.get_range_string (self, play, unit):
Get the current range as a string. media must be prepared with
gst_rtsp_media_prepare ().
Parameters:
the unit to use for the string
The range as a string, GLib.free after usage.
gst_rtsp_media_get_rates
gboolean
gst_rtsp_media_get_rates (GstRTSPMedia * media,
gdouble * rate,
gdouble * applied_rate)
Get the rate and applied_rate of the current segment.
Parameters:
rate
(
[optional][out])
–
the rate of the current segment
applied_rate
(
[optional][out])
–
the applied_rate of the current segment
Returns
–
FALSE if looking up the rate and applied rate failed. Otherwise
TRUE is returned and rate and applied_rate are set to the rate and
applied_rate of the current segment.
Since : 1.18
function GstRtspServer.RTSPMedia.prototype.get_rates(): {
}
Get the rate and applied_rate of the current segment.
Returns a tuple made of:
false if looking up the rate and applied rate failed. Otherwise
true is returned and rate and applied_rate are set to the rate and
applied_rate of the current segment.
false if looking up the rate and applied rate failed. Otherwise
true is returned and rate and applied_rate are set to the rate and
applied_rate of the current segment.
false if looking up the rate and applied rate failed. Otherwise
true is returned and rate and applied_rate are set to the rate and
applied_rate of the current segment.
Since : 1.18
GstRtspServer.RTSPMedia.get_rates
def GstRtspServer.RTSPMedia.get_rates (self):
Get the rate and applied_rate of the current segment.
Returns a tuple made of:
False if looking up the rate and applied rate failed. Otherwise
True is returned and rate and applied_rate are set to the rate and
applied_rate of the current segment.
False if looking up the rate and applied rate failed. Otherwise
True is returned and rate and applied_rate are set to the rate and
applied_rate of the current segment.
False if looking up the rate and applied rate failed. Otherwise
True is returned and rate and applied_rate are set to the rate and
applied_rate of the current segment.
Since : 1.18
gst_rtsp_media_get_retransmission_time
GstClockTime
gst_rtsp_media_get_retransmission_time (GstRTSPMedia * media)
Get the amount of time to store retransmission data.
Returns
–
the amount of time to store retransmission data.
function GstRtspServer.RTSPMedia.prototype.get_retransmission_time(): {
}
Get the amount of time to store retransmission data.
the amount of time to store retransmission data.
GstRtspServer.RTSPMedia.get_retransmission_time
def GstRtspServer.RTSPMedia.get_retransmission_time (self):
Get the amount of time to store retransmission data.
the amount of time to store retransmission data.
gst_rtsp_media_get_status
GstRTSPMediaStatus
gst_rtsp_media_get_status (GstRTSPMedia * media)
Get the status of media. When media is busy preparing, this function waits
until media is prepared or in error.
Returns
–
the status of media.
function GstRtspServer.RTSPMedia.prototype.get_status(): {
}
Get the status of media. When media is busy preparing, this function waits
until media is prepared or in error.
GstRtspServer.RTSPMedia.get_status
def GstRtspServer.RTSPMedia.get_status (self):
Get the status of media. When media is busy preparing, this function waits
until media is prepared or in error.
gst_rtsp_media_get_stream
GstRTSPStream *
gst_rtsp_media_get_stream (GstRTSPMedia * media,
guint idx)
Retrieve the stream with index idx from media.
Returns
(
[nullable][transfer: none])
–
the GstRTSPStream at index
idx or NULL when a stream with that index did not exist.
function GstRtspServer.RTSPMedia.prototype.get_stream(idx: Number): {
}
Retrieve the stream with index idx from media.
GstRtspServer.RTSPMedia.get_stream
def GstRtspServer.RTSPMedia.get_stream (self, idx):
Retrieve the stream with index idx from media.
gst_rtsp_media_get_time_provider
GstNetTimeProvider *
gst_rtsp_media_get_time_provider (GstRTSPMedia * media,
const gchar * address,
guint16 port)
Get the GstNetTimeProvider for the clock used by media. The time provider
will listen on address and port for client time requests.
Parameters:
address
(
[allow-none])
–
an address or NULL
function GstRtspServer.RTSPMedia.prototype.get_time_provider(address: String, port: Number): {
}
Get the GstNet.NetTimeProvider for the clock used by media. The time provider
will listen on address and port for client time requests.
GstRtspServer.RTSPMedia.get_time_provider
def GstRtspServer.RTSPMedia.get_time_provider (self, address, port):
Get the GstNet.NetTimeProvider for the clock used by media. The time provider
will listen on address and port for client time requests.
gst_rtsp_media_get_transport_mode
GstRTSPTransportMode
gst_rtsp_media_get_transport_mode (GstRTSPMedia * media)
Check if the pipeline for media can be used for PLAY or RECORD methods.
Returns
–
The transport mode.
function GstRtspServer.RTSPMedia.prototype.get_transport_mode(): {
}
Check if the pipeline for media can be used for PLAY or RECORD methods.
GstRtspServer.RTSPMedia.get_transport_mode
def GstRtspServer.RTSPMedia.get_transport_mode (self):
Check if the pipeline for media can be used for PLAY or RECORD methods.
gst_rtsp_media_handle_sdp
gboolean
gst_rtsp_media_handle_sdp (GstRTSPMedia * media,
GstSDPMessage * sdp)
Configure an SDP on media for receiving streams
Returns
–
TRUE on success.
function GstRtspServer.RTSPMedia.prototype.handle_sdp(sdp: GstSdp.SDPMessage): {
}
Configure an SDP on media for receiving streams
GstRtspServer.RTSPMedia.handle_sdp
def GstRtspServer.RTSPMedia.handle_sdp (self, sdp):
Configure an SDP on media for receiving streams
gst_rtsp_media_is_bind_mcast_address
gboolean
gst_rtsp_media_is_bind_mcast_address (GstRTSPMedia * media)
Check if multicast sockets are configured to be bound to multicast addresses.
Returns
–
TRUE if multicast sockets are configured to be bound to multicast addresses.
Since : 1.16
function GstRtspServer.RTSPMedia.prototype.is_bind_mcast_address(): {
}
Check if multicast sockets are configured to be bound to multicast addresses.
true if multicast sockets are configured to be bound to multicast addresses.
Since : 1.16
GstRtspServer.RTSPMedia.is_bind_mcast_address
def GstRtspServer.RTSPMedia.is_bind_mcast_address (self):
Check if multicast sockets are configured to be bound to multicast addresses.
True if multicast sockets are configured to be bound to multicast addresses.
Since : 1.16
gst_rtsp_media_is_eos_shutdown
gboolean
gst_rtsp_media_is_eos_shutdown (GstRTSPMedia * media)
Check if the pipeline for media will send an EOS down the pipeline before
unpreparing.
Returns
–
TRUE if the media will send EOS before unpreparing.
function GstRtspServer.RTSPMedia.prototype.is_eos_shutdown(): {
}
Check if the pipeline for media will send an EOS down the pipeline before
unpreparing.
true if the media will send EOS before unpreparing.
GstRtspServer.RTSPMedia.is_eos_shutdown
def GstRtspServer.RTSPMedia.is_eos_shutdown (self):
Check if the pipeline for media will send an EOS down the pipeline before
unpreparing.
True if the media will send EOS before unpreparing.
gst_rtsp_media_is_reusable
gboolean
gst_rtsp_media_is_reusable (GstRTSPMedia * media)
Check if the pipeline for media can be reused after an unprepare.
Returns
–
TRUE if the media can be reused
function GstRtspServer.RTSPMedia.prototype.is_reusable(): {
}
Check if the pipeline for media can be reused after an unprepare.
true if the media can be reused
GstRtspServer.RTSPMedia.is_reusable
def GstRtspServer.RTSPMedia.is_reusable (self):
Check if the pipeline for media can be reused after an unprepare.
True if the media can be reused
gst_rtsp_media_is_shared
gboolean
gst_rtsp_media_is_shared (GstRTSPMedia * media)
Check if the pipeline for media can be shared between multiple clients in
theory. This simply returns the value set via gst_rtsp_media_set_shared.
To know if a media can be shared in practice, i.e. if it's shareable and
either reusable or was never unprepared before, use
gst_rtsp_media_can_be_shared.
Returns
–
TRUE if the media can be shared between clients.
GstRtspServer.RTSPMedia.is_shared
def GstRtspServer.RTSPMedia.is_shared (self):
Check if the pipeline for media can be shared between multiple clients in
theory. This simply returns the value set via GstRtspServer.RTSPMedia.set_shared.
To know if a media can be shared in practice, i.e. if it's shareable and
either reusable or was never unprepared before, use
GstRtspServer.RTSPMedia.can_be_shared.
True if the media can be shared between clients.
gst_rtsp_media_is_stop_on_disconnect
gboolean
gst_rtsp_media_is_stop_on_disconnect (GstRTSPMedia * media)
Check if the pipeline for media will be stopped when a client disconnects
without sending TEARDOWN.
Returns
–
TRUE if the media will be stopped when a client disconnects
without sending TEARDOWN.
function GstRtspServer.RTSPMedia.prototype.is_stop_on_disconnect(): {
}
Check if the pipeline for media will be stopped when a client disconnects
without sending TEARDOWN.
true if the media will be stopped when a client disconnects
without sending TEARDOWN.
GstRtspServer.RTSPMedia.is_stop_on_disconnect
def GstRtspServer.RTSPMedia.is_stop_on_disconnect (self):
Check if the pipeline for media will be stopped when a client disconnects
without sending TEARDOWN.
True if the media will be stopped when a client disconnects
without sending TEARDOWN.
gst_rtsp_media_lock
gst_rtsp_media_lock (GstRTSPMedia * media)
Lock the entire media. This is needed by callers such as rtsp_client to
protect the media when it is shared by many clients.
The lock prevents that concurrent clients alters the shared media,
while one client already is working with it.
Typically the lock is taken in external RTSP API calls that uses shared media
such as DESCRIBE, SETUP, ANNOUNCE, TEARDOWN, PLAY, PAUSE.
As best practice take the lock as soon as the function get hold of a shared
media object. Release the lock right before the function returns.
Since : 1.18
function GstRtspServer.RTSPMedia.prototype.lock(): {
}
Lock the entire media. This is needed by callers such as rtsp_client to
protect the media when it is shared by many clients.
The lock prevents that concurrent clients alters the shared media,
while one client already is working with it.
Typically the lock is taken in external RTSP API calls that uses shared media
such as DESCRIBE, SETUP, ANNOUNCE, TEARDOWN, PLAY, PAUSE.
As best practice take the lock as soon as the function get hold of a shared
media object. Release the lock right before the function returns.
Since : 1.18
GstRtspServer.RTSPMedia.lock
def GstRtspServer.RTSPMedia.lock (self):
Lock the entire media. This is needed by callers such as rtsp_client to
protect the media when it is shared by many clients.
The lock prevents that concurrent clients alters the shared media,
while one client already is working with it.
Typically the lock is taken in external RTSP API calls that uses shared media
such as DESCRIBE, SETUP, ANNOUNCE, TEARDOWN, PLAY, PAUSE.
As best practice take the lock as soon as the function get hold of a shared
media object. Release the lock right before the function returns.
Since : 1.18
gst_rtsp_media_n_streams
guint
gst_rtsp_media_n_streams (GstRTSPMedia * media)
Get the number of streams in this media.
Returns
–
The number of streams.
function GstRtspServer.RTSPMedia.prototype.n_streams(): {
}
Get the number of streams in this media.
GstRtspServer.RTSPMedia.n_streams
def GstRtspServer.RTSPMedia.n_streams (self):
Get the number of streams in this media.
gst_rtsp_media_prepare
gboolean
gst_rtsp_media_prepare (GstRTSPMedia * media,
GstRTSPThread * thread)
Prepare media for streaming. This function will create the objects
to manage the streaming. A pipeline must have been set on media with
gst_rtsp_media_take_pipeline.
It will preroll the pipeline and collect vital information about the streams
such as the duration.
Parameters:
thread
(
[transfer: full][allow-none])
–
a GstRTSPThread to run the
bus handler or NULL
Returns
–
TRUE on success.
function GstRtspServer.RTSPMedia.prototype.prepare(thread: GstRtspServer.RTSPThread): {
}
Prepare media for streaming. This function will create the objects
to manage the streaming. A pipeline must have been set on media with
GstRtspServer.RTSPMedia.prototype.take_pipeline.
It will preroll the pipeline and collect vital information about the streams
such as the duration.
GstRtspServer.RTSPMedia.prepare
def GstRtspServer.RTSPMedia.prepare (self, thread):
Prepare media for streaming. This function will create the objects
to manage the streaming. A pipeline must have been set on media with
GstRtspServer.RTSPMedia.take_pipeline.
It will preroll the pipeline and collect vital information about the streams
such as the duration.
function GstRtspServer.RTSPMedia.prototype.seek_full(range: GstRtsp.RTSPTimeRange, flags: Gst.SeekFlags): {
}
Seek the pipeline of media to range with the given flags.
media must be prepared with GstRtspServer.RTSPMedia.prototype.prepare.
Since : 1.18
GstRtspServer.RTSPMedia.seek_full
def GstRtspServer.RTSPMedia.seek_full (self, range, flags):
Seek the pipeline of media to range with the given flags.
media must be prepared with GstRtspServer.RTSPMedia.prepare.
Since : 1.18
gst_rtsp_media_seek_trickmode
gboolean
gst_rtsp_media_seek_trickmode (GstRTSPMedia * media,
GstRTSPTimeRange * range,
GstSeekFlags flags,
gdouble rate,
GstClockTime trickmode_interval)
Seek the pipeline of media to range with the given flags and rate,
and trickmode_interval.
media must be prepared with gst_rtsp_media_prepare.
In order to perform the seek operation, the pipeline must contain all
needed transport parts (transport sinks).
Parameters:
rate
–
the rate to use in the seek
trickmode_interval
–
The trickmode interval to use for KEY_UNITS trick mode
Returns
–
TRUE on success.
Since : 1.18
function GstRtspServer.RTSPMedia.prototype.seek_trickmode(range: GstRtsp.RTSPTimeRange, flags: Gst.SeekFlags, rate: Number, trickmode_interval: Number): {
}
Seek the pipeline of media to range with the given flags and rate,
and trickmode_interval.
media must be prepared with GstRtspServer.RTSPMedia.prototype.prepare.
In order to perform the seek operation, the pipeline must contain all
needed transport parts (transport sinks).
Parameters:
the rate to use in the seek
The trickmode interval to use for KEY_UNITS trick mode
Since : 1.18
GstRtspServer.RTSPMedia.seek_trickmode
def GstRtspServer.RTSPMedia.seek_trickmode (self, range, flags, rate, trickmode_interval):
Seek the pipeline of media to range with the given flags and rate,
and trickmode_interval.
media must be prepared with GstRtspServer.RTSPMedia.prepare.
In order to perform the seek operation, the pipeline must contain all
needed transport parts (transport sinks).
Parameters:
the rate to use in the seek
trickmode_interval
(int)
–
The trickmode interval to use for KEY_UNITS trick mode
Since : 1.18
gst_rtsp_media_seekable
GstClockTimeDiff
gst_rtsp_media_seekable (GstRTSPMedia * media)
Check if the pipeline for media seek and up to what point in time,
it can seek.
Returns
–
-1 if the stream is not seekable, 0 if seekable only to the beginning
and > 0 to indicate the longest duration between any two random access points.
G_MAXINT64 means any value is possible.
Since : 1.14
function GstRtspServer.RTSPMedia.prototype.seekable(): {
}
Check if the pipeline for media seek and up to what point in time,
it can seek.
-1 if the stream is not seekable, 0 if seekable only to the beginning
and > 0 to indicate the longest duration between any two random access points.
GLib.MAXINT64 means any value is possible.
Since : 1.14
GstRtspServer.RTSPMedia.seekable
def GstRtspServer.RTSPMedia.seekable (self):
Check if the pipeline for media seek and up to what point in time,
it can seek.
-1 if the stream is not seekable, 0 if seekable only to the beginning
and > 0 to indicate the longest duration between any two random access points.
GLib.MAXINT64 means any value is possible.
Since : 1.14
gst_rtsp_media_set_bind_mcast_address
gst_rtsp_media_set_bind_mcast_address (GstRTSPMedia * media,
gboolean bind_mcast_addr)
Decide whether the multicast socket should be bound to a multicast address or
INADDR_ANY.
Parameters:
bind_mcast_addr
–
the new value
Since : 1.16
function GstRtspServer.RTSPMedia.prototype.set_bind_mcast_address(bind_mcast_addr: Number): {
}
Decide whether the multicast socket should be bound to a multicast address or
INADDR_ANY.
Since : 1.16
GstRtspServer.RTSPMedia.set_bind_mcast_address
def GstRtspServer.RTSPMedia.set_bind_mcast_address (self, bind_mcast_addr):
Decide whether the multicast socket should be bound to a multicast address or
INADDR_ANY.
Since : 1.16
gst_rtsp_media_set_buffer_size
gst_rtsp_media_set_buffer_size (GstRTSPMedia * media,
guint size)
Set the kernel UDP buffer size.
function GstRtspServer.RTSPMedia.prototype.set_buffer_size(size: Number): {
}
Set the kernel UDP buffer size.
GstRtspServer.RTSPMedia.set_buffer_size
def GstRtspServer.RTSPMedia.set_buffer_size (self, size):
Set the kernel UDP buffer size.
gst_rtsp_media_set_clock
gst_rtsp_media_set_clock (GstRTSPMedia * media,
GstClock * clock)
Configure the clock used for the media.
function GstRtspServer.RTSPMedia.prototype.set_clock(clock: Gst.Clock): {
}
Configure the clock used for the media.
GstRtspServer.RTSPMedia.set_clock
def GstRtspServer.RTSPMedia.set_clock (self, clock):
Configure the clock used for the media.
gst_rtsp_media_set_do_retransmission
gst_rtsp_media_set_do_retransmission (GstRTSPMedia * media,
gboolean do_retransmission)
Set whether retransmission requests will be sent
Parameters:
media
–
No description available
do_retransmission
–
No description available
Since : 1.16
function GstRtspServer.RTSPMedia.prototype.set_do_retransmission(do_retransmission: Number): {
}
Set whether retransmission requests will be sent
Since : 1.16
GstRtspServer.RTSPMedia.set_do_retransmission
def GstRtspServer.RTSPMedia.set_do_retransmission (self, do_retransmission):
Set whether retransmission requests will be sent
Parameters:
do_retransmission
(bool)
–
No description available
Since : 1.16
gst_rtsp_media_set_dscp_qos
gst_rtsp_media_set_dscp_qos (GstRTSPMedia * media,
gint dscp_qos)
Configure the dscp qos of attached streams to dscp_qos.
Parameters:
dscp_qos
–
a new dscp qos value (0-63, or -1 to disable)
Since : 1.18
function GstRtspServer.RTSPMedia.prototype.set_dscp_qos(dscp_qos: Number): {
}
Configure the dscp qos of attached streams to dscp_qos.
Parameters:
a new dscp qos value (0-63, or -1 to disable)
Since : 1.18
GstRtspServer.RTSPMedia.set_dscp_qos
def GstRtspServer.RTSPMedia.set_dscp_qos (self, dscp_qos):
Configure the dscp qos of attached streams to dscp_qos.
Parameters:
a new dscp qos value (0-63, or -1 to disable)
Since : 1.18
gst_rtsp_media_set_ensure_keyunit_on_start
gst_rtsp_media_set_ensure_keyunit_on_start (GstRTSPMedia * media,
gboolean ensure_keyunit_on_start)
Set whether or not a keyunit should be ensured when a client connects. It
will also configure the streams to drop delta units to ensure that they start
on a keyunit.
Note that this will only affect non-shared medias for now.
Parameters:
ensure_keyunit_on_start
–
the new value
Since : 1.24
function GstRtspServer.RTSPMedia.prototype.set_ensure_keyunit_on_start(ensure_keyunit_on_start: Number): {
}
Set whether or not a keyunit should be ensured when a client connects. It
will also configure the streams to drop delta units to ensure that they start
on a keyunit.
Note that this will only affect non-shared medias for now.
Parameters:
ensure_keyunit_on_start
(Number)
–
the new value
Since : 1.24
GstRtspServer.RTSPMedia.set_ensure_keyunit_on_start
def GstRtspServer.RTSPMedia.set_ensure_keyunit_on_start (self, ensure_keyunit_on_start):
Set whether or not a keyunit should be ensured when a client connects. It
will also configure the streams to drop delta units to ensure that they start
on a keyunit.
Note that this will only affect non-shared medias for now.
Parameters:
ensure_keyunit_on_start
(bool)
–
the new value
Since : 1.24
gst_rtsp_media_set_ensure_keyunit_on_start_timeout
gst_rtsp_media_set_ensure_keyunit_on_start_timeout (GstRTSPMedia * media,
guint timeout)
Sets the maximum allowed time before the first keyunit is considered
expired.
Note that this will only have an effect when ensure-keyunit-on-start is
enabled.
Since : 1.24
function GstRtspServer.RTSPMedia.prototype.set_ensure_keyunit_on_start_timeout(timeout: Number): {
}
Sets the maximum allowed time before the first keyunit is considered
expired.
Note that this will only have an effect when ensure-keyunit-on-start is
enabled.
Since : 1.24
GstRtspServer.RTSPMedia.set_ensure_keyunit_on_start_timeout
def GstRtspServer.RTSPMedia.set_ensure_keyunit_on_start_timeout (self, timeout):
Sets the maximum allowed time before the first keyunit is considered
expired.
Note that this will only have an effect when ensure-keyunit-on-start is
enabled.
Since : 1.24
gst_rtsp_media_set_eos_shutdown
gst_rtsp_media_set_eos_shutdown (GstRTSPMedia * media,
gboolean eos_shutdown)
Set or unset if an EOS event will be sent to the pipeline for media before
it is unprepared.
Parameters:
eos_shutdown
–
the new value
function GstRtspServer.RTSPMedia.prototype.set_eos_shutdown(eos_shutdown: Number): {
}
Set or unset if an EOS event will be sent to the pipeline for media before
it is unprepared.
GstRtspServer.RTSPMedia.set_eos_shutdown
def GstRtspServer.RTSPMedia.set_eos_shutdown (self, eos_shutdown):
Set or unset if an EOS event will be sent to the pipeline for media before
it is unprepared.
gst_rtsp_media_set_latency
gst_rtsp_media_set_latency (GstRTSPMedia * media,
guint latency)
Configure the latency used for receiving media.
Parameters:
latency
–
latency in milliseconds
function GstRtspServer.RTSPMedia.prototype.set_latency(latency: Number): {
}
Configure the latency used for receiving media.
GstRtspServer.RTSPMedia.set_latency
def GstRtspServer.RTSPMedia.set_latency (self, latency):
Configure the latency used for receiving media.
gst_rtsp_media_set_max_mcast_ttl
gboolean
gst_rtsp_media_set_max_mcast_ttl (GstRTSPMedia * media,
guint ttl)
Set the maximum time-to-live value of outgoing multicast packets.
Parameters:
ttl
–
the new multicast ttl value
Returns
–
TRUE if the requested ttl has been set successfully.
Since : 1.16
function GstRtspServer.RTSPMedia.prototype.set_max_mcast_ttl(ttl: Number): {
}
Set the maximum time-to-live value of outgoing multicast packets.
Parameters:
the new multicast ttl value
true if the requested ttl has been set successfully.
Since : 1.16
GstRtspServer.RTSPMedia.set_max_mcast_ttl
def GstRtspServer.RTSPMedia.set_max_mcast_ttl (self, ttl):
Set the maximum time-to-live value of outgoing multicast packets.
Parameters:
the new multicast ttl value
True if the requested ttl has been set successfully.
Since : 1.16
gst_rtsp_media_set_multicast_iface
gst_rtsp_media_set_multicast_iface (GstRTSPMedia * media,
const gchar * multicast_iface)
configure multicast_iface to be used for media.
Parameters:
multicast_iface
(
[transfer: none][nullable])
–
a multicast interface name
function GstRtspServer.RTSPMedia.prototype.set_multicast_iface(multicast_iface: String): {
}
configure multicast_iface to be used for media.
Parameters:
a multicast interface name
GstRtspServer.RTSPMedia.set_multicast_iface
def GstRtspServer.RTSPMedia.set_multicast_iface (self, multicast_iface):
configure multicast_iface to be used for media.
Parameters:
a multicast interface name
gst_rtsp_media_set_pipeline_state
gst_rtsp_media_set_pipeline_state (GstRTSPMedia * media,
GstState state)
Set the state of the pipeline managed by media to state
Parameters:
state
–
the target state of the pipeline
function GstRtspServer.RTSPMedia.prototype.set_pipeline_state(state: Gst.State): {
}
Set the state of the pipeline managed by media to state
Parameters:
the target state of the pipeline
GstRtspServer.RTSPMedia.set_pipeline_state
def GstRtspServer.RTSPMedia.set_pipeline_state (self, state):
Set the state of the pipeline managed by media to state
Parameters:
the target state of the pipeline
gst_rtsp_media_set_profiles
gst_rtsp_media_set_profiles (GstRTSPMedia * media,
GstRTSPProfile profiles)
Configure the allowed lower transport for media.
function GstRtspServer.RTSPMedia.prototype.set_profiles(profiles: GstRtsp.RTSPProfile): {
}
Configure the allowed lower transport for media.
GstRtspServer.RTSPMedia.set_profiles
def GstRtspServer.RTSPMedia.set_profiles (self, profiles):
Configure the allowed lower transport for media.
gst_rtsp_media_set_protocols
gst_rtsp_media_set_protocols (GstRTSPMedia * media,
GstRTSPLowerTrans protocols)
Configure the allowed lower transport for media.
Parameters:
protocols
–
the new flags
function GstRtspServer.RTSPMedia.prototype.set_protocols(protocols: GstRtsp.RTSPLowerTrans): {
}
Configure the allowed lower transport for media.
GstRtspServer.RTSPMedia.set_protocols
def GstRtspServer.RTSPMedia.set_protocols (self, protocols):
Configure the allowed lower transport for media.
gst_rtsp_media_set_publish_clock_mode
gst_rtsp_media_set_publish_clock_mode (GstRTSPMedia * media,
GstRTSPPublishClockMode mode)
Sets if and how the media clock should be published according to RFC7273.
Parameters:
mode
–
the clock publish mode
Since : 1.8
function GstRtspServer.RTSPMedia.prototype.set_publish_clock_mode(mode: GstRtspServer.RTSPPublishClockMode): {
}
Sets if and how the media clock should be published according to RFC7273.
Since : 1.8
GstRtspServer.RTSPMedia.set_publish_clock_mode
def GstRtspServer.RTSPMedia.set_publish_clock_mode (self, mode):
Sets if and how the media clock should be published according to RFC7273.
Since : 1.8
gst_rtsp_media_set_rate_control
gst_rtsp_media_set_rate_control (GstRTSPMedia * media,
gboolean enabled)
Define whether media will follow the Rate-Control=no behaviour as specified
in the ONVIF replay spec.
Parameters:
media
–
No description available
enabled
–
No description available
Since : 1.18
function GstRtspServer.RTSPMedia.prototype.set_rate_control(enabled: Number): {
}
Define whether media will follow the Rate-Control=no behaviour as specified
in the ONVIF replay spec.
Since : 1.18
GstRtspServer.RTSPMedia.set_rate_control
def GstRtspServer.RTSPMedia.set_rate_control (self, enabled):
Define whether media will follow the Rate-Control=no behaviour as specified
in the ONVIF replay spec.
Since : 1.18
gst_rtsp_media_set_retransmission_time
gst_rtsp_media_set_retransmission_time (GstRTSPMedia * media,
GstClockTime time)
Set the amount of time to store retransmission packets.
function GstRtspServer.RTSPMedia.prototype.set_retransmission_time(time: Number): {
}
Set the amount of time to store retransmission packets.
GstRtspServer.RTSPMedia.set_retransmission_time
def GstRtspServer.RTSPMedia.set_retransmission_time (self, time):
Set the amount of time to store retransmission packets.
gst_rtsp_media_set_reusable
gst_rtsp_media_set_reusable (GstRTSPMedia * media,
gboolean reusable)
Set or unset if the pipeline for media can be reused after the pipeline has
been unprepared.
function GstRtspServer.RTSPMedia.prototype.set_reusable(reusable: Number): {
}
Set or unset if the pipeline for media can be reused after the pipeline has
been unprepared.
GstRtspServer.RTSPMedia.set_reusable
def GstRtspServer.RTSPMedia.set_reusable (self, reusable):
Set or unset if the pipeline for media can be reused after the pipeline has
been unprepared.
gst_rtsp_media_set_shared
gst_rtsp_media_set_shared (GstRTSPMedia * media,
gboolean shared)
Set or unset if the pipeline for media can be shared will multiple clients.
When shared is TRUE, client requests for this media will share the media
pipeline.
function GstRtspServer.RTSPMedia.prototype.set_shared(shared: Number): {
}
Set or unset if the pipeline for media can be shared will multiple clients.
When shared is true, client requests for this media will share the media
pipeline.
GstRtspServer.RTSPMedia.set_shared
def GstRtspServer.RTSPMedia.set_shared (self, shared):
Set or unset if the pipeline for media can be shared will multiple clients.
When shared is True, client requests for this media will share the media
pipeline.
gst_rtsp_media_set_state
gboolean
gst_rtsp_media_set_state (GstRTSPMedia * media,
GstState state,
GPtrArray * transports)
Set the state of media to state and for the transports in transports.
media must be prepared with gst_rtsp_media_prepare;
Parameters:
state
–
the target state of the media
Returns
–
TRUE on success.
function GstRtspServer.RTSPMedia.prototype.set_state(state: Gst.State, transports: [ GstRtspServer.RTSPStreamTransport ]): {
}
Set the state of media to state and for the transports in transports.
media must be prepared with GstRtspServer.RTSPMedia.prototype.prepare;
Parameters:
the target state of the media
GstRtspServer.RTSPMedia.set_state
def GstRtspServer.RTSPMedia.set_state (self, state, transports):
Set the state of media to state and for the transports in transports.
media must be prepared with GstRtspServer.RTSPMedia.prepare;
Parameters:
the target state of the media
gst_rtsp_media_set_stop_on_disconnect
gst_rtsp_media_set_stop_on_disconnect (GstRTSPMedia * media,
gboolean stop_on_disconnect)
Set or unset if the pipeline for media should be stopped when a
client disconnects without sending TEARDOWN.
Parameters:
stop_on_disconnect
–
the new value
function GstRtspServer.RTSPMedia.prototype.set_stop_on_disconnect(stop_on_disconnect: Number): {
}
Set or unset if the pipeline for media should be stopped when a
client disconnects without sending TEARDOWN.
GstRtspServer.RTSPMedia.set_stop_on_disconnect
def GstRtspServer.RTSPMedia.set_stop_on_disconnect (self, stop_on_disconnect):
Set or unset if the pipeline for media should be stopped when a
client disconnects without sending TEARDOWN.
Parameters:
stop_on_disconnect
(bool)
–
the new value
gst_rtsp_media_set_suspend_mode
gst_rtsp_media_set_suspend_mode (GstRTSPMedia * media,
GstRTSPSuspendMode mode)
Control how media will be suspended after the SDP has been generated and
after a PAUSE request has been performed.
Media must be unprepared when setting the suspend mode.
function GstRtspServer.RTSPMedia.prototype.set_suspend_mode(mode: GstRtspServer.RTSPSuspendMode): {
}
Control how media will be suspended after the SDP has been generated and
after a PAUSE request has been performed.
Media must be unprepared when setting the suspend mode.
GstRtspServer.RTSPMedia.set_suspend_mode
def GstRtspServer.RTSPMedia.set_suspend_mode (self, mode):
Control how media will be suspended after the SDP has been generated and
after a PAUSE request has been performed.
Media must be unprepared when setting the suspend mode.
gst_rtsp_media_set_transport_mode
gst_rtsp_media_set_transport_mode (GstRTSPMedia * media,
GstRTSPTransportMode mode)
Sets if the media pipeline can work in PLAY or RECORD mode
function GstRtspServer.RTSPMedia.prototype.set_transport_mode(mode: GstRtspServer.RTSPTransportMode): {
}
Sets if the media pipeline can work in PLAY or RECORD mode
GstRtspServer.RTSPMedia.set_transport_mode
def GstRtspServer.RTSPMedia.set_transport_mode (self, mode):
Sets if the media pipeline can work in PLAY or RECORD mode
gst_rtsp_media_setup_sdp
gboolean
gst_rtsp_media_setup_sdp (GstRTSPMedia * media,
GstSDPMessage * sdp,
GstSDPInfo * info)
Add media specific info to sdp. info is used to configure the connection
information in the SDP.
Returns
–
TRUE on success.
function GstRtspServer.RTSPMedia.prototype.setup_sdp(sdp: GstSdp.SDPMessage, info: GstRtspServer.SDPInfo): {
}
Add media specific info to sdp. info is used to configure the connection
information in the SDP.
GstRtspServer.RTSPMedia.setup_sdp
def GstRtspServer.RTSPMedia.setup_sdp (self, sdp, info):
Add media specific info to sdp. info is used to configure the connection
information in the SDP.
gst_rtsp_media_take_pipeline
gst_rtsp_media_take_pipeline (GstRTSPMedia * media,
GstPipeline * pipeline)
Set pipeline as the GstPipeline for media. Ownership is
taken of pipeline.
function GstRtspServer.RTSPMedia.prototype.take_pipeline(pipeline: Gst.Pipeline): {
}
Set pipeline as the Gst.Pipeline for media. Ownership is
taken of pipeline.
GstRtspServer.RTSPMedia.take_pipeline
def GstRtspServer.RTSPMedia.take_pipeline (self, pipeline):
Set pipeline as the Gst.Pipeline for media. Ownership is
taken of pipeline.
gst_rtsp_media_unprepare
gboolean
gst_rtsp_media_unprepare (GstRTSPMedia * media)
Unprepare media. After this call, the media should be prepared again before
it can be used again. If the media is set to be non-reusable, a new instance
must be created.
Returns
–
TRUE on success.
function GstRtspServer.RTSPMedia.prototype.unprepare(): {
}
Unprepare media. After this call, the media should be prepared again before
it can be used again. If the media is set to be non-reusable, a new instance
must be created.
GstRtspServer.RTSPMedia.unprepare
def GstRtspServer.RTSPMedia.unprepare (self):
Unprepare media. After this call, the media should be prepared again before
it can be used again. If the media is set to be non-reusable, a new instance
must be created.
gst_rtsp_media_unsuspend
gboolean
gst_rtsp_media_unsuspend (GstRTSPMedia * media)
Unsuspend media if it was in a suspended state. This method does nothing
when the media was not in the suspended state.
Returns
–
TRUE on success.
function GstRtspServer.RTSPMedia.prototype.unsuspend(): {
}
Unsuspend media if it was in a suspended state. This method does nothing
when the media was not in the suspended state.
GstRtspServer.RTSPMedia.unsuspend
def GstRtspServer.RTSPMedia.unsuspend (self):
Unsuspend media if it was in a suspended state. This method does nothing
when the media was not in the suspended state.
handle-message
gboolean
handle_message_callback (GstRTSPMedia * self,
GstMessage * message,
gpointer user_data)
Will be emitted when a message appears on the pipeline bus.
Parameters:
self
–
No description available
user_data
–
No description available
Returns
–
a gboolean indicating if the call was successful or not.
Flags:
Run Last
Since : 1.22
function handle_message_callback(self: GstRtspServer.RTSPMedia, message: Gst.Message, user_data: Object): {
}
Will be emitted when a message appears on the pipeline bus.
a Number indicating if the call was successful or not.
Flags:
Run Last
Since : 1.22
handle-message
def handle_message_callback (self, message, *user_data):
Will be emitted when a message appears on the pipeline bus.
a bool indicating if the call was successful or not.
Flags:
Run Last
Since : 1.22
new-state
new_state_callback (GstRTSPMedia * self,
gint object,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
user_data
–
No description available
Flags:
Run Last
function new_state_callback(self: GstRtspServer.RTSPMedia, object: Number, user_data: Object): {
}
Flags:
Run Last
new-state
def new_state_callback (self, object, *user_data):
Flags:
Run Last
target-state
target_state_callback (GstRTSPMedia * self,
gint object,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
user_data
–
No description available
Flags:
Run Last
function target_state_callback(self: GstRtspServer.RTSPMedia, object: Number, user_data: Object): {
}
Flags:
Run Last
target-state
def target_state_callback (self, object, *user_data):
Flags:
Run Last
ensure-keyunit-on-start
“ensure-keyunit-on-start” gboolean
Whether or not a keyunit should be ensured when a client connects. It
will also configure the streams to drop delta units to ensure that they start
on a keyunit.
Note that this will only affect non-shared medias for now.
Flags :
Read
/
Write
Since : 1.24
“ensure-keyunit-on-start” Number
Whether or not a keyunit should be ensured when a client connects. It
will also configure the streams to drop delta units to ensure that they start
on a keyunit.
Note that this will only affect non-shared medias for now.
Flags :
Read
/
Write
Since : 1.24
ensure_keyunit_on_start
“self.props.ensure_keyunit_on_start” bool
Whether or not a keyunit should be ensured when a client connects. It
will also configure the streams to drop delta units to ensure that they start
on a keyunit.
Note that this will only affect non-shared medias for now.
Flags :
Read
/
Write
Since : 1.24
ensure-keyunit-on-start-timeout
“ensure-keyunit-on-start-timeout” guint
The maximum allowed time before the first keyunit is considered
expired.
Note that this will only have an effect when ensure-keyunit-on-start is
enabled.
Flags :
Read
/
Write
Since : 1.24
“ensure-keyunit-on-start-timeout” Number
The maximum allowed time before the first keyunit is considered
expired.
Note that this will only have an effect when ensure-keyunit-on-start is
enabled.
Flags :
Read
/
Write
Since : 1.24
ensure_keyunit_on_start_timeout
“self.props.ensure_keyunit_on_start_timeout” int
The maximum allowed time before the first keyunit is considered
expired.
Note that this will only have an effect when ensure-keyunit-on-start is
enabled.
Flags :
Read
/
Write
Since : 1.24
convert_range
gboolean
convert_range (GstRTSPMedia * media,
GstRTSPTimeRange * range,
GstRTSPRangeUnit unit)
convert a range to the given unit
Parameters:
media
–
No description available
range
–
No description available
unit
–
No description available
Returns
–
No description available
function vfunc_convert_range(media: GstRtspServer.RTSPMedia, range: GstRtsp.RTSPTimeRange, unit: GstRtsp.RTSPRangeUnit): {
}
convert a range to the given unit
do_convert_range
def do_convert_range (media, range, unit):
convert a range to the given unit
prepare
gboolean
prepare (GstRTSPMedia * media,
GstRTSPThread * thread)
the default implementation adds all elements and sets the
pipeline's state to GST_STATE_PAUSED (or GST_STATE_PLAYING
in case of NO_PREROLL elements).
Parameters:
media
–
No description available
thread
–
No description available
Returns
–
No description available
function vfunc_prepare(media: GstRtspServer.RTSPMedia, thread: GstRtspServer.RTSPThread): {
}
the default implementation adds all elements and sets the
pipeline's state to GST_STATE_PAUSED (or GST_STATE_PLAYING
in case of NO_PREROLL elements).
do_prepare
def do_prepare (media, thread):
the default implementation adds all elements and sets the
pipeline's state to GST_STATE_PAUSED (or GST_STATE_PLAYING
in case of NO_PREROLL elements).
query_position
gboolean
query_position (GstRTSPMedia * media,
gint64 * position)
query the current position in the pipeline
Parameters:
media
–
No description available
position
–
No description available
Returns
–
No description available
function vfunc_query_position(media: GstRtspServer.RTSPMedia, position: Number): {
}
query the current position in the pipeline
do_query_position
def do_query_position (media, position):
query the current position in the pipeline
query_stop
gboolean
query_stop (GstRTSPMedia * media,
gint64 * stop)
query when playback will stop
Parameters:
media
–
No description available
stop
–
No description available
Returns
–
No description available
function vfunc_query_stop(media: GstRtspServer.RTSPMedia, stop: Number): {
}
query when playback will stop
do_query_stop
def do_query_stop (media, stop):
query when playback will stop
suspend
gboolean
suspend (GstRTSPMedia * media)
the default implementation sets the pipeline's state to
GST_STATE_NULL GST_STATE_PAUSED depending on the selected
suspend mode.
Parameters:
media
–
No description available
Returns
–
No description available
function vfunc_suspend(media: GstRtspServer.RTSPMedia): {
}
the default implementation sets the pipeline's state to
GST_STATE_NULL GST_STATE_PAUSED depending on the selected
suspend mode.
do_suspend
def do_suspend (media):
the default implementation sets the pipeline's state to
GST_STATE_NULL GST_STATE_PAUSED depending on the selected
suspend mode.
unprepare
gboolean
unprepare (GstRTSPMedia * media)
the default implementation sets the pipeline's state
to GST_STATE_NULL and removes all elements.
Parameters:
media
–
No description available
Returns
–
No description available
function vfunc_unprepare(media: GstRtspServer.RTSPMedia): {
}
the default implementation sets the pipeline's state
to GST_STATE_NULL and removes all elements.
do_unprepare
def do_unprepare (media):
the default implementation sets the pipeline's state
to GST_STATE_NULL and removes all elements.
unsuspend
gboolean
unsuspend (GstRTSPMedia * media)
the default implementation reverts the suspend operation.
The pipeline will be prerolled again if it's state was
set to GST_STATE_NULL in suspend.
Parameters:
media
–
No description available
Returns
–
No description available
function vfunc_unsuspend(media: GstRtspServer.RTSPMedia): {
}
the default implementation reverts the suspend operation.
The pipeline will be prerolled again if it's state was
set to GST_STATE_NULL in suspend.
do_unsuspend
def do_unsuspend (media):
the default implementation reverts the suspend operation.
The pipeline will be prerolled again if it's state was
set to GST_STATE_NULL in suspend.
GstRTSPSuspendMode
The suspend mode of the media pipeline. A media pipeline is suspended right
after creating the SDP and when the client performs a PAUSED request.
Members
GST_RTSP_SUSPEND_MODE_NONE
(0)
–
Media is not suspended
GST_RTSP_SUSPEND_MODE_PAUSE
(1)
–
Media is PAUSED in suspend
GST_RTSP_SUSPEND_MODE_RESET
(2)
–
The media is set to NULL when suspended
GstRtspServer.RTSPSuspendMode
The suspend mode of the media pipeline. A media pipeline is suspended right
after creating the SDP and when the client performs a PAUSED request.
Members
GstRtspServer.RTSPSuspendMode.NONE
(0)
–
Media is not suspended
GstRtspServer.RTSPSuspendMode.PAUSE
(1)
–
Media is PAUSED in suspend
GstRtspServer.RTSPSuspendMode.RESET
(2)
–
The media is set to NULL when suspended
GstRtspServer.RTSPSuspendMode
The suspend mode of the media pipeline. A media pipeline is suspended right
after creating the SDP and when the client performs a PAUSED request.
Members
GstRtspServer.RTSPSuspendMode.NONE
(0)
–
Media is not suspended
GstRtspServer.RTSPSuspendMode.PAUSE
(1)
–
Media is PAUSED in suspend
GstRtspServer.RTSPSuspendMode.RESET
(2)
–
The media is set to NULL when suspended