rtsp media factory
The GstRTSPMediaFactory is responsible for creating or recycling GstRTSPMedia objects based on the passed URL.
The default implementation of the object can create GstRTSPMedia objects containing a pipeline created from a launch description set with gst_rtsp_media_factory_set_launch.
Media from a factory can be shared by setting the shared flag with gst_rtsp_media_factory_set_shared. When a factory is shared, gst_rtsp_media_factory_construct will return the same GstRTSPMedia when the url matches.
Last reviewed on 2013-07-11 (1.0.0)
GstRTSPMediaFactory
GObject ╰──GstRTSPMediaFactory ╰──GstRTSPMediaFactoryURI ╰──GstRTSPOnvifMediaFactory
The definition and logic for constructing the pipeline for a media. The media can contain multiple streams like audio and video.
Members
parent
(GObject)
–
Class structure
GstRTSPMediaFactoryClass
The GstRTSPMediaFactory class structure.
Fields
parent_class
(GObjectClass)
–
GstRtspServer.RTSPMediaFactoryClass
The GstRtspServer.RTSPMediaFactory class structure.
Attributes
parent_class
(GObject.ObjectClass)
–
GstRtspServer.RTSPMediaFactoryClass
The GstRtspServer.RTSPMediaFactory class structure.
Attributes
parent_class
(GObject.ObjectClass)
–
GstRtspServer.RTSPMediaFactory
GObject.Object ╰──GstRtspServer.RTSPMediaFactory ╰──GstRtspServer.RTSPMediaFactoryURI ╰──GstRtspServer.RTSPOnvifMediaFactory
The definition and logic for constructing the pipeline for a media. The media can contain multiple streams like audio and video.
Members
parent
(GObject.Object)
–
GstRtspServer.RTSPMediaFactory
GObject.Object ╰──GstRtspServer.RTSPMediaFactory ╰──GstRtspServer.RTSPMediaFactoryURI ╰──GstRtspServer.RTSPOnvifMediaFactory
The definition and logic for constructing the pipeline for a media. The media can contain multiple streams like audio and video.
Members
parent
(GObject.Object)
–
Constructors
gst_rtsp_media_factory_new
GstRTSPMediaFactory * gst_rtsp_media_factory_new ()
Create a new GstRTSPMediaFactory instance.
a new GstRTSPMediaFactory object.
GstRtspServer.RTSPMediaFactory.prototype.new
function GstRtspServer.RTSPMediaFactory.prototype.new(): {
// javascript wrapper for 'gst_rtsp_media_factory_new'
}
Create a new GstRtspServer.RTSPMediaFactory instance.
a new GstRtspServer.RTSPMediaFactory object.
GstRtspServer.RTSPMediaFactory.new
def GstRtspServer.RTSPMediaFactory.new ():
#python wrapper for 'gst_rtsp_media_factory_new'
Create a new GstRtspServer.RTSPMediaFactory instance.
a new GstRtspServer.RTSPMediaFactory object.
Methods
gst_rtsp_media_factory_add_role
gst_rtsp_media_factory_add_role (GstRTSPMediaFactory * factory, const gchar * role, const gchar * fieldname, ... ...)
A convenience method to add role with fieldname and additional arguments to the permissions of factory. If factory had no permissions, new permissions will be created and the role will be added to it.
Parameters:
factory
–
role
–
a role
fieldname
–
the first field name
...
–
additional arguments
gst_rtsp_media_factory_add_role_from_structure
gst_rtsp_media_factory_add_role_from_structure (GstRTSPMediaFactory * factory, GstStructure * structure)
A convenience wrapper around gst_rtsp_permissions_add_role_from_structure. If factory had no permissions, new permissions will be created and the role will be added to it.
Parameters:
factory
–
structure
–
Since : 1.14
GstRtspServer.RTSPMediaFactory.prototype.add_role_from_structure
function GstRtspServer.RTSPMediaFactory.prototype.add_role_from_structure(structure: Gst.Structure): {
// javascript wrapper for 'gst_rtsp_media_factory_add_role_from_structure'
}
A convenience wrapper around GstRtspServer.RTSPPermissions.prototype.add_role_from_structure. If factory had no permissions, new permissions will be created and the role will be added to it.
Parameters:
Since : 1.14
GstRtspServer.RTSPMediaFactory.add_role_from_structure
def GstRtspServer.RTSPMediaFactory.add_role_from_structure (self, structure):
#python wrapper for 'gst_rtsp_media_factory_add_role_from_structure'
A convenience wrapper around GstRtspServer.RTSPPermissions.add_role_from_structure. If factory had no permissions, new permissions will be created and the role will be added to it.
Parameters:
Since : 1.14
gst_rtsp_media_factory_construct
GstRTSPMedia * gst_rtsp_media_factory_construct (GstRTSPMediaFactory * factory, const GstRTSPUrl * url)
Construct the media object and create its streams. Implementations should create the needed gstreamer elements and add them to the result object. No state changes should be performed on them yet.
One or more GstRTSPStream objects should be created from the result with gst_rtsp_media_create_stream ().
After the media is constructed, it can be configured and then prepared with gst_rtsp_media_prepare ().
The returned media will be locked and must be unlocked afterwards.
a new GstRTSPMedia if the media could be prepared.
GstRtspServer.RTSPMediaFactory.prototype.construct
function GstRtspServer.RTSPMediaFactory.prototype.construct(url: GstRtsp.RTSPUrl): {
// javascript wrapper for 'gst_rtsp_media_factory_construct'
}
Construct the media object and create its streams. Implementations should create the needed gstreamer elements and add them to the result object. No state changes should be performed on them yet.
One or more GstRTSPStream objects should be created from the result with gst_rtsp_media_create_stream ().
After the media is constructed, it can be configured and then prepared with gst_rtsp_media_prepare ().
The returned media will be locked and must be unlocked afterwards.
Parameters:
the url used
a new GstRtspServer.RTSPMedia if the media could be prepared.
GstRtspServer.RTSPMediaFactory.construct
def GstRtspServer.RTSPMediaFactory.construct (self, url):
#python wrapper for 'gst_rtsp_media_factory_construct'
Construct the media object and create its streams. Implementations should create the needed gstreamer elements and add them to the result object. No state changes should be performed on them yet.
One or more GstRTSPStream objects should be created from the result with gst_rtsp_media_create_stream ().
After the media is constructed, it can be configured and then prepared with gst_rtsp_media_prepare ().
The returned media will be locked and must be unlocked afterwards.
Parameters:
the url used
a new GstRtspServer.RTSPMedia if the media could be prepared.
gst_rtsp_media_factory_create_element
GstElement * gst_rtsp_media_factory_create_element (GstRTSPMediaFactory * factory, const GstRTSPUrl * url)
Construct and return a GstElement that is a GstBin containing the elements to use for streaming the media.
The bin should contain payloaders pay%d for each stream. The default implementation of this function returns the bin created from the launch parameter.
a new GstElement.
GstRtspServer.RTSPMediaFactory.prototype.create_element
function GstRtspServer.RTSPMediaFactory.prototype.create_element(url: GstRtsp.RTSPUrl): {
// javascript wrapper for 'gst_rtsp_media_factory_create_element'
}
Construct and return a Gst.Element that is a Gst.Bin containing the elements to use for streaming the media.
The bin should contain payloaders pay%d for each stream. The default implementation of this function returns the bin created from the launch parameter.
Parameters:
the url used
a new Gst.Element.
GstRtspServer.RTSPMediaFactory.create_element
def GstRtspServer.RTSPMediaFactory.create_element (self, url):
#python wrapper for 'gst_rtsp_media_factory_create_element'
Construct and return a Gst.Element that is a Gst.Bin containing the elements to use for streaming the media.
The bin should contain payloaders pay%d for each stream. The default implementation of this function returns the bin created from the launch parameter.
Parameters:
the url used
a new Gst.Element.
gst_rtsp_media_factory_get_address_pool
GstRTSPAddressPool * gst_rtsp_media_factory_get_address_pool (GstRTSPMediaFactory * factory)
Get the GstRTSPAddressPool used as the address pool of factory.
Parameters:
factory
–
the GstRTSPAddressPool of factory. g_object_unref after usage.
GstRtspServer.RTSPMediaFactory.prototype.get_address_pool
function GstRtspServer.RTSPMediaFactory.prototype.get_address_pool(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_address_pool'
}
Get the GstRtspServer.RTSPAddressPool used as the address pool of factory.
Parameters:
the GstRtspServer.RTSPAddressPool of factory. GObject.Object.prototype.unref after usage.
GstRtspServer.RTSPMediaFactory.get_address_pool
def GstRtspServer.RTSPMediaFactory.get_address_pool (self):
#python wrapper for 'gst_rtsp_media_factory_get_address_pool'
Get the GstRtspServer.RTSPAddressPool used as the address pool of factory.
Parameters:
the GstRtspServer.RTSPAddressPool of factory. GObject.Object.unref after usage.
gst_rtsp_media_factory_get_buffer_size
guint gst_rtsp_media_factory_get_buffer_size (GstRTSPMediaFactory * factory)
Get the kernel UDP buffer size.
Parameters:
factory
–
the kernel UDP buffer size.
GstRtspServer.RTSPMediaFactory.prototype.get_buffer_size
function GstRtspServer.RTSPMediaFactory.prototype.get_buffer_size(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_buffer_size'
}
Get the kernel UDP buffer size.
Parameters:
the kernel UDP buffer size.
GstRtspServer.RTSPMediaFactory.get_buffer_size
def GstRtspServer.RTSPMediaFactory.get_buffer_size (self):
#python wrapper for 'gst_rtsp_media_factory_get_buffer_size'
Get the kernel UDP buffer size.
Parameters:
the kernel UDP buffer size.
gst_rtsp_media_factory_get_clock
GstClock * gst_rtsp_media_factory_get_clock (GstRTSPMediaFactory * factory)
Returns the clock that is going to be used by the pipelines of all medias created from this factory.
Parameters:
factory
–
The GstClock
Since : 1.8
GstRtspServer.RTSPMediaFactory.prototype.get_clock
function GstRtspServer.RTSPMediaFactory.prototype.get_clock(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_clock'
}
Returns the clock that is going to be used by the pipelines of all medias created from this factory.
Parameters:
The GstClock
Since : 1.8
GstRtspServer.RTSPMediaFactory.get_clock
def GstRtspServer.RTSPMediaFactory.get_clock (self):
#python wrapper for 'gst_rtsp_media_factory_get_clock'
Returns the clock that is going to be used by the pipelines of all medias created from this factory.
Parameters:
The GstClock
Since : 1.8
gst_rtsp_media_factory_get_do_retransmission
gboolean gst_rtsp_media_factory_get_do_retransmission (GstRTSPMediaFactory * factory)
Parameters:
factory
–
Whether retransmission requests will be sent for receiving media
Since : 1.16
GstRtspServer.RTSPMediaFactory.prototype.get_do_retransmission
function GstRtspServer.RTSPMediaFactory.prototype.get_do_retransmission(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_do_retransmission'
}
Parameters:
Whether retransmission requests will be sent for receiving media
Since : 1.16
GstRtspServer.RTSPMediaFactory.get_do_retransmission
def GstRtspServer.RTSPMediaFactory.get_do_retransmission (self):
#python wrapper for 'gst_rtsp_media_factory_get_do_retransmission'
Parameters:
Whether retransmission requests will be sent for receiving media
Since : 1.16
gst_rtsp_media_factory_get_dscp_qos
gint gst_rtsp_media_factory_get_dscp_qos (GstRTSPMediaFactory * factory)
Get the configured media DSCP QoS.
Parameters:
factory
–
the media DSCP QoS value or -1 if disabled.
Since : 1.18
GstRtspServer.RTSPMediaFactory.prototype.get_dscp_qos
function GstRtspServer.RTSPMediaFactory.prototype.get_dscp_qos(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_dscp_qos'
}
Get the configured media DSCP QoS.
Parameters:
the media DSCP QoS value or -1 if disabled.
Since : 1.18
GstRtspServer.RTSPMediaFactory.get_dscp_qos
def GstRtspServer.RTSPMediaFactory.get_dscp_qos (self):
#python wrapper for 'gst_rtsp_media_factory_get_dscp_qos'
Get the configured media DSCP QoS.
Parameters:
the media DSCP QoS value or -1 if disabled.
Since : 1.18
gst_rtsp_media_factory_get_ensure_keyunit_on_start
gboolean gst_rtsp_media_factory_get_ensure_keyunit_on_start (GstRTSPMediaFactory * factory)
Get ensure-keyunit-on-start flag.
Parameters:
factory
–
The ensure-keyunit-on-start flag.
Since : 1.24
GstRtspServer.RTSPMediaFactory.prototype.get_ensure_keyunit_on_start
function GstRtspServer.RTSPMediaFactory.prototype.get_ensure_keyunit_on_start(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_ensure_keyunit_on_start'
}
Get ensure-keyunit-on-start flag.
Parameters:
The ensure-keyunit-on-start flag.
Since : 1.24
GstRtspServer.RTSPMediaFactory.get_ensure_keyunit_on_start
def GstRtspServer.RTSPMediaFactory.get_ensure_keyunit_on_start (self):
#python wrapper for 'gst_rtsp_media_factory_get_ensure_keyunit_on_start'
Get ensure-keyunit-on-start flag.
Parameters:
The ensure-keyunit-on-start flag.
Since : 1.24
gst_rtsp_media_factory_get_ensure_keyunit_on_start_timeout
guint gst_rtsp_media_factory_get_ensure_keyunit_on_start_timeout (GstRTSPMediaFactory * factory)
Get ensure-keyunit-on-start-timeout time.
Parameters:
factory
–
The ensure-keyunit-on-start-timeout time.
Since : 1.24
GstRtspServer.RTSPMediaFactory.prototype.get_ensure_keyunit_on_start_timeout
function GstRtspServer.RTSPMediaFactory.prototype.get_ensure_keyunit_on_start_timeout(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_ensure_keyunit_on_start_timeout'
}
Get ensure-keyunit-on-start-timeout time.
Parameters:
The ensure-keyunit-on-start-timeout time.
Since : 1.24
GstRtspServer.RTSPMediaFactory.get_ensure_keyunit_on_start_timeout
def GstRtspServer.RTSPMediaFactory.get_ensure_keyunit_on_start_timeout (self):
#python wrapper for 'gst_rtsp_media_factory_get_ensure_keyunit_on_start_timeout'
Get ensure-keyunit-on-start-timeout time.
Parameters:
The ensure-keyunit-on-start-timeout time.
Since : 1.24
gst_rtsp_media_factory_get_latency
guint gst_rtsp_media_factory_get_latency (GstRTSPMediaFactory * factory)
Get the latency that is used for receiving media
Parameters:
factory
–
latency in milliseconds
GstRtspServer.RTSPMediaFactory.prototype.get_latency
function GstRtspServer.RTSPMediaFactory.prototype.get_latency(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_latency'
}
Get the latency that is used for receiving media
Parameters:
latency in milliseconds
GstRtspServer.RTSPMediaFactory.get_latency
def GstRtspServer.RTSPMediaFactory.get_latency (self):
#python wrapper for 'gst_rtsp_media_factory_get_latency'
Get the latency that is used for receiving media
Parameters:
latency in milliseconds
gst_rtsp_media_factory_get_launch
gchar * gst_rtsp_media_factory_get_launch (GstRTSPMediaFactory * factory)
Get the gst_parse_launch pipeline description that will be used in the default prepare vmethod.
Parameters:
factory
–
the configured launch description. g_free after usage.
GstRtspServer.RTSPMediaFactory.prototype.get_launch
function GstRtspServer.RTSPMediaFactory.prototype.get_launch(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_launch'
}
Get the Gst.prototype.parse_launch pipeline description that will be used in the default prepare vmethod.
Parameters:
the configured launch description. GLib.prototype.free after usage.
GstRtspServer.RTSPMediaFactory.get_launch
def GstRtspServer.RTSPMediaFactory.get_launch (self):
#python wrapper for 'gst_rtsp_media_factory_get_launch'
Get the Gst.parse_launch pipeline description that will be used in the default prepare vmethod.
Parameters:
gst_rtsp_media_factory_get_max_mcast_ttl
guint gst_rtsp_media_factory_get_max_mcast_ttl (GstRTSPMediaFactory * factory)
Get the the maximum time-to-live value of outgoing multicast packets.
Parameters:
factory
–
the maximum time-to-live value of outgoing multicast packets.
Since : 1.16
GstRtspServer.RTSPMediaFactory.prototype.get_max_mcast_ttl
function GstRtspServer.RTSPMediaFactory.prototype.get_max_mcast_ttl(): {
// javascript wrapper for 'gst_rtsp_media_factory_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.RTSPMediaFactory.get_max_mcast_ttl
def GstRtspServer.RTSPMediaFactory.get_max_mcast_ttl (self):
#python wrapper for 'gst_rtsp_media_factory_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_media_factory_get_media_gtype
GType gst_rtsp_media_factory_get_media_gtype (GstRTSPMediaFactory * factory)
Return the GType of the GstRTSPMedia subclass this factory will create.
Parameters:
factory
–
Since : 1.6
GstRtspServer.RTSPMediaFactory.prototype.get_media_gtype
function GstRtspServer.RTSPMediaFactory.prototype.get_media_gtype(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_media_gtype'
}
Return the GType of the GstRTSPMedia subclass this factory will create.
Parameters:
Since : 1.6
GstRtspServer.RTSPMediaFactory.get_media_gtype
def GstRtspServer.RTSPMediaFactory.get_media_gtype (self):
#python wrapper for 'gst_rtsp_media_factory_get_media_gtype'
Return the GType of the GstRTSPMedia subclass this factory will create.
Parameters:
Since : 1.6
gst_rtsp_media_factory_get_multicast_iface
gchar * gst_rtsp_media_factory_get_multicast_iface (GstRTSPMediaFactory * factory)
Get the multicast interface used for factory.
Parameters:
factory
–
the multicast interface for factory. g_free after usage.
GstRtspServer.RTSPMediaFactory.prototype.get_multicast_iface
function GstRtspServer.RTSPMediaFactory.prototype.get_multicast_iface(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_multicast_iface'
}
Get the multicast interface used for factory.
Parameters:
the multicast interface for factory. GLib.prototype.free after usage.
GstRtspServer.RTSPMediaFactory.get_multicast_iface
def GstRtspServer.RTSPMediaFactory.get_multicast_iface (self):
#python wrapper for 'gst_rtsp_media_factory_get_multicast_iface'
Get the multicast interface used for factory.
Parameters:
gst_rtsp_media_factory_get_permissions
GstRTSPPermissions * gst_rtsp_media_factory_get_permissions (GstRTSPMediaFactory * factory)
Get the permissions object from factory.
Parameters:
factory
–
a GstRTSPPermissions object, unref after usage.
GstRtspServer.RTSPMediaFactory.prototype.get_permissions
function GstRtspServer.RTSPMediaFactory.prototype.get_permissions(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_permissions'
}
Get the permissions object from factory.
Parameters:
a GstRtspServer.RTSPPermissions object, unref after usage.
GstRtspServer.RTSPMediaFactory.get_permissions
def GstRtspServer.RTSPMediaFactory.get_permissions (self):
#python wrapper for 'gst_rtsp_media_factory_get_permissions'
Get the permissions object from factory.
Parameters:
a GstRtspServer.RTSPPermissions object, unref after usage.
gst_rtsp_media_factory_get_profiles
GstRTSPProfile gst_rtsp_media_factory_get_profiles (GstRTSPMediaFactory * factory)
Get the allowed profiles of factory.
Parameters:
factory
–
GstRtspServer.RTSPMediaFactory.prototype.get_profiles
function GstRtspServer.RTSPMediaFactory.prototype.get_profiles(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_profiles'
}
Get the allowed profiles of factory.
Parameters:
GstRtspServer.RTSPMediaFactory.get_profiles
def GstRtspServer.RTSPMediaFactory.get_profiles (self):
#python wrapper for 'gst_rtsp_media_factory_get_profiles'
Get the allowed profiles of factory.
Parameters:
gst_rtsp_media_factory_get_protocols
GstRTSPLowerTrans gst_rtsp_media_factory_get_protocols (GstRTSPMediaFactory * factory)
Get the allowed protocols of factory.
Parameters:
factory
–
GstRtspServer.RTSPMediaFactory.prototype.get_protocols
function GstRtspServer.RTSPMediaFactory.prototype.get_protocols(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_protocols'
}
Get the allowed protocols of factory.
Parameters:
GstRtspServer.RTSPMediaFactory.get_protocols
def GstRtspServer.RTSPMediaFactory.get_protocols (self):
#python wrapper for 'gst_rtsp_media_factory_get_protocols'
Get the allowed protocols of factory.
Parameters:
gst_rtsp_media_factory_get_publish_clock_mode
GstRTSPPublishClockMode gst_rtsp_media_factory_get_publish_clock_mode (GstRTSPMediaFactory * factory)
Gets if and how the media clock should be published according to RFC7273.
Parameters:
factory
–
The GstRTSPPublishClockMode
Since : 1.8
GstRtspServer.RTSPMediaFactory.prototype.get_publish_clock_mode
function GstRtspServer.RTSPMediaFactory.prototype.get_publish_clock_mode(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_publish_clock_mode'
}
Gets if and how the media clock should be published according to RFC7273.
Parameters:
The GstRTSPPublishClockMode
Since : 1.8
GstRtspServer.RTSPMediaFactory.get_publish_clock_mode
def GstRtspServer.RTSPMediaFactory.get_publish_clock_mode (self):
#python wrapper for 'gst_rtsp_media_factory_get_publish_clock_mode'
Gets if and how the media clock should be published according to RFC7273.
Parameters:
The GstRTSPPublishClockMode
Since : 1.8
gst_rtsp_media_factory_get_retransmission_time
GstClockTime gst_rtsp_media_factory_get_retransmission_time (GstRTSPMediaFactory * factory)
Get the time that is stored for retransmission purposes
Parameters:
factory
–
GstRtspServer.RTSPMediaFactory.prototype.get_retransmission_time
function GstRtspServer.RTSPMediaFactory.prototype.get_retransmission_time(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_retransmission_time'
}
Get the time that is stored for retransmission purposes
Parameters:
GstRtspServer.RTSPMediaFactory.get_retransmission_time
def GstRtspServer.RTSPMediaFactory.get_retransmission_time (self):
#python wrapper for 'gst_rtsp_media_factory_get_retransmission_time'
Get the time that is stored for retransmission purposes
Parameters:
gst_rtsp_media_factory_get_suspend_mode
GstRTSPSuspendMode gst_rtsp_media_factory_get_suspend_mode (GstRTSPMediaFactory * factory)
Get how media created from this factory will be suspended.
Parameters:
factory
–
GstRtspServer.RTSPMediaFactory.prototype.get_suspend_mode
function GstRtspServer.RTSPMediaFactory.prototype.get_suspend_mode(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_suspend_mode'
}
Get how media created from this factory will be suspended.
Parameters:
GstRtspServer.RTSPMediaFactory.get_suspend_mode
def GstRtspServer.RTSPMediaFactory.get_suspend_mode (self):
#python wrapper for 'gst_rtsp_media_factory_get_suspend_mode'
Get how media created from this factory will be suspended.
Parameters:
gst_rtsp_media_factory_get_transport_mode
GstRTSPTransportMode gst_rtsp_media_factory_get_transport_mode (GstRTSPMediaFactory * factory)
Get if media created from this factory can be used for PLAY or RECORD methods.
Parameters:
factory
–
The transport mode.
GstRtspServer.RTSPMediaFactory.prototype.get_transport_mode
function GstRtspServer.RTSPMediaFactory.prototype.get_transport_mode(): {
// javascript wrapper for 'gst_rtsp_media_factory_get_transport_mode'
}
Get if media created from this factory can be used for PLAY or RECORD methods.
Parameters:
The transport mode.
GstRtspServer.RTSPMediaFactory.get_transport_mode
def GstRtspServer.RTSPMediaFactory.get_transport_mode (self):
#python wrapper for 'gst_rtsp_media_factory_get_transport_mode'
Get if media created from this factory can be used for PLAY or RECORD methods.
Parameters:
The transport mode.
gst_rtsp_media_factory_is_bind_mcast_address
gboolean gst_rtsp_media_factory_is_bind_mcast_address (GstRTSPMediaFactory * factory)
Check if multicast sockets are configured to be bound to multicast addresses.
Parameters:
factory
–
TRUE if multicast sockets are configured to be bound to multicast addresses.
Since : 1.16
GstRtspServer.RTSPMediaFactory.prototype.is_bind_mcast_address
function GstRtspServer.RTSPMediaFactory.prototype.is_bind_mcast_address(): {
// javascript wrapper for 'gst_rtsp_media_factory_is_bind_mcast_address'
}
Check if multicast sockets are configured to be bound to multicast addresses.
Parameters:
Since : 1.16
GstRtspServer.RTSPMediaFactory.is_bind_mcast_address
def GstRtspServer.RTSPMediaFactory.is_bind_mcast_address (self):
#python wrapper for 'gst_rtsp_media_factory_is_bind_mcast_address'
Check if multicast sockets are configured to be bound to multicast addresses.
Parameters:
Since : 1.16
gst_rtsp_media_factory_is_enable_rtcp
gboolean gst_rtsp_media_factory_is_enable_rtcp (GstRTSPMediaFactory * factory)
Check if created media will send and receive RTCP
Parameters:
factory
–
TRUE if created media will send and receive RTCP
Since : 1.20
GstRtspServer.RTSPMediaFactory.prototype.is_enable_rtcp
function GstRtspServer.RTSPMediaFactory.prototype.is_enable_rtcp(): {
// javascript wrapper for 'gst_rtsp_media_factory_is_enable_rtcp'
}
Check if created media will send and receive RTCP
Parameters:
Since : 1.20
GstRtspServer.RTSPMediaFactory.is_enable_rtcp
def GstRtspServer.RTSPMediaFactory.is_enable_rtcp (self):
#python wrapper for 'gst_rtsp_media_factory_is_enable_rtcp'
Check if created media will send and receive RTCP
Parameters:
Since : 1.20
gst_rtsp_media_factory_is_eos_shutdown
gboolean gst_rtsp_media_factory_is_eos_shutdown (GstRTSPMediaFactory * factory)
Get if media created from this factory will have an EOS event sent to the pipeline before shutdown.
Parameters:
factory
–
TRUE if the media will receive EOS before shutdown.
GstRtspServer.RTSPMediaFactory.prototype.is_eos_shutdown
function GstRtspServer.RTSPMediaFactory.prototype.is_eos_shutdown(): {
// javascript wrapper for 'gst_rtsp_media_factory_is_eos_shutdown'
}
Get if media created from this factory will have an EOS event sent to the pipeline before shutdown.
Parameters:
GstRtspServer.RTSPMediaFactory.is_eos_shutdown
def GstRtspServer.RTSPMediaFactory.is_eos_shutdown (self):
#python wrapper for 'gst_rtsp_media_factory_is_eos_shutdown'
Get if media created from this factory will have an EOS event sent to the pipeline before shutdown.
Parameters:
gst_rtsp_media_factory_is_stop_on_disonnect
gboolean gst_rtsp_media_factory_is_stop_on_disonnect (GstRTSPMediaFactory * factory)
Parameters:
factory
–
GstRtspServer.RTSPMediaFactory.prototype.is_stop_on_disonnect
function GstRtspServer.RTSPMediaFactory.prototype.is_stop_on_disonnect(): {
// javascript wrapper for 'gst_rtsp_media_factory_is_stop_on_disonnect'
}
Parameters:
GstRtspServer.RTSPMediaFactory.is_stop_on_disonnect
def GstRtspServer.RTSPMediaFactory.is_stop_on_disonnect (self):
#python wrapper for 'gst_rtsp_media_factory_is_stop_on_disonnect'
Parameters:
gst_rtsp_media_factory_set_address_pool
gst_rtsp_media_factory_set_address_pool (GstRTSPMediaFactory * factory, GstRTSPAddressPool * pool)
configure pool to be used as the address pool of factory.
Parameters:
factory
–
pool
(
[transfer: none][nullable])
–
GstRtspServer.RTSPMediaFactory.prototype.set_address_pool
function GstRtspServer.RTSPMediaFactory.prototype.set_address_pool(pool: GstRtspServer.RTSPAddressPool): {
// javascript wrapper for 'gst_rtsp_media_factory_set_address_pool'
}
configure pool to be used as the address pool of factory.
Parameters:
GstRtspServer.RTSPMediaFactory.set_address_pool
def GstRtspServer.RTSPMediaFactory.set_address_pool (self, pool):
#python wrapper for 'gst_rtsp_media_factory_set_address_pool'
configure pool to be used as the address pool of factory.
Parameters:
gst_rtsp_media_factory_set_bind_mcast_address
gst_rtsp_media_factory_set_bind_mcast_address (GstRTSPMediaFactory * factory, gboolean bind_mcast_addr)
Decide whether the multicast socket should be bound to a multicast address or INADDR_ANY.
Since : 1.16
GstRtspServer.RTSPMediaFactory.prototype.set_bind_mcast_address
function GstRtspServer.RTSPMediaFactory.prototype.set_bind_mcast_address(bind_mcast_addr: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_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.RTSPMediaFactory.set_bind_mcast_address
def GstRtspServer.RTSPMediaFactory.set_bind_mcast_address (self, bind_mcast_addr):
#python wrapper for 'gst_rtsp_media_factory_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_media_factory_set_buffer_size
gst_rtsp_media_factory_set_buffer_size (GstRTSPMediaFactory * factory, guint size)
Set the kernel UDP buffer size.
GstRtspServer.RTSPMediaFactory.prototype.set_buffer_size
function GstRtspServer.RTSPMediaFactory.prototype.set_buffer_size(size: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_set_buffer_size'
}
Set the kernel UDP buffer size.
Parameters:
the new value
GstRtspServer.RTSPMediaFactory.set_buffer_size
def GstRtspServer.RTSPMediaFactory.set_buffer_size (self, size):
#python wrapper for 'gst_rtsp_media_factory_set_buffer_size'
Set the kernel UDP buffer size.
Parameters:
the new value
gst_rtsp_media_factory_set_clock
gst_rtsp_media_factory_set_clock (GstRTSPMediaFactory * factory, GstClock * clock)
Configures a specific clock to be used by the pipelines of all medias created from this factory.
Parameters:
factory
–
clock
(
[nullable])
–
the clock to be used by the media factory
Since : 1.8
GstRtspServer.RTSPMediaFactory.prototype.set_clock
function GstRtspServer.RTSPMediaFactory.prototype.set_clock(clock: Gst.Clock): {
// javascript wrapper for 'gst_rtsp_media_factory_set_clock'
}
Configures a specific clock to be used by the pipelines of all medias created from this factory.
Parameters:
the clock to be used by the media factory
Since : 1.8
GstRtspServer.RTSPMediaFactory.set_clock
def GstRtspServer.RTSPMediaFactory.set_clock (self, clock):
#python wrapper for 'gst_rtsp_media_factory_set_clock'
Configures a specific clock to be used by the pipelines of all medias created from this factory.
Parameters:
the clock to be used by the media factory
Since : 1.8
gst_rtsp_media_factory_set_do_retransmission
gst_rtsp_media_factory_set_do_retransmission (GstRTSPMediaFactory * factory, gboolean do_retransmission)
Set whether retransmission requests will be sent for receiving media
Parameters:
factory
–
do_retransmission
–
Since : 1.16
GstRtspServer.RTSPMediaFactory.prototype.set_do_retransmission
function GstRtspServer.RTSPMediaFactory.prototype.set_do_retransmission(do_retransmission: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_set_do_retransmission'
}
Set whether retransmission requests will be sent for receiving media
Parameters:
Since : 1.16
GstRtspServer.RTSPMediaFactory.set_do_retransmission
def GstRtspServer.RTSPMediaFactory.set_do_retransmission (self, do_retransmission):
#python wrapper for 'gst_rtsp_media_factory_set_do_retransmission'
Set whether retransmission requests will be sent for receiving media
Parameters:
Since : 1.16
gst_rtsp_media_factory_set_dscp_qos
gst_rtsp_media_factory_set_dscp_qos (GstRTSPMediaFactory * factory, gint dscp_qos)
Configure the media dscp qos to dscp_qos.
Parameters:
factory
–
dscp_qos
–
a new dscp qos value (0-63, or -1 to disable)
Since : 1.18
GstRtspServer.RTSPMediaFactory.prototype.set_dscp_qos
function GstRtspServer.RTSPMediaFactory.prototype.set_dscp_qos(dscp_qos: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_set_dscp_qos'
}
Configure the media dscp qos to dscp_qos.
Parameters:
a new dscp qos value (0-63, or -1 to disable)
Since : 1.18
GstRtspServer.RTSPMediaFactory.set_dscp_qos
def GstRtspServer.RTSPMediaFactory.set_dscp_qos (self, dscp_qos):
#python wrapper for 'gst_rtsp_media_factory_set_dscp_qos'
Configure the media dscp qos to dscp_qos.
Parameters:
a new dscp qos value (0-63, or -1 to disable)
Since : 1.18
gst_rtsp_media_factory_set_enable_rtcp
gst_rtsp_media_factory_set_enable_rtcp (GstRTSPMediaFactory * factory, gboolean enable)
Decide whether the created media should send and receive RTCP
Since : 1.20
GstRtspServer.RTSPMediaFactory.prototype.set_enable_rtcp
function GstRtspServer.RTSPMediaFactory.prototype.set_enable_rtcp(enable: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_set_enable_rtcp'
}
Decide whether the created media should send and receive RTCP
Parameters:
the new value
Since : 1.20
GstRtspServer.RTSPMediaFactory.set_enable_rtcp
def GstRtspServer.RTSPMediaFactory.set_enable_rtcp (self, enable):
#python wrapper for 'gst_rtsp_media_factory_set_enable_rtcp'
Decide whether the created media should send and receive RTCP
Parameters:
the new value
Since : 1.20
gst_rtsp_media_factory_set_ensure_keyunit_on_start
gst_rtsp_media_factory_set_ensure_keyunit_on_start (GstRTSPMediaFactory * factory, gboolean ensure_keyunit_on_start)
If media from this factory should ensure a key unit when a client connects.
Since : 1.24
GstRtspServer.RTSPMediaFactory.prototype.set_ensure_keyunit_on_start
function GstRtspServer.RTSPMediaFactory.prototype.set_ensure_keyunit_on_start(ensure_keyunit_on_start: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_set_ensure_keyunit_on_start'
}
If media from this factory should ensure a key unit when a client connects.
Parameters:
the new value
Since : 1.24
GstRtspServer.RTSPMediaFactory.set_ensure_keyunit_on_start
def GstRtspServer.RTSPMediaFactory.set_ensure_keyunit_on_start (self, ensure_keyunit_on_start):
#python wrapper for 'gst_rtsp_media_factory_set_ensure_keyunit_on_start'
If media from this factory should ensure a key unit when a client connects.
Parameters:
the new value
Since : 1.24
gst_rtsp_media_factory_set_ensure_keyunit_on_start_timeout
gst_rtsp_media_factory_set_ensure_keyunit_on_start_timeout (GstRTSPMediaFactory * factory, guint timeout)
Configures medias from this factory to consider keyunits older than timeout to be expired. Expired keyunits will be discarded.
Since : 1.24
GstRtspServer.RTSPMediaFactory.prototype.set_ensure_keyunit_on_start_timeout
function GstRtspServer.RTSPMediaFactory.prototype.set_ensure_keyunit_on_start_timeout(timeout: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_set_ensure_keyunit_on_start_timeout'
}
Configures medias from this factory to consider keyunits older than timeout to be expired. Expired keyunits will be discarded.
Parameters:
the new value
Since : 1.24
GstRtspServer.RTSPMediaFactory.set_ensure_keyunit_on_start_timeout
def GstRtspServer.RTSPMediaFactory.set_ensure_keyunit_on_start_timeout (self, timeout):
#python wrapper for 'gst_rtsp_media_factory_set_ensure_keyunit_on_start_timeout'
Configures medias from this factory to consider keyunits older than timeout to be expired. Expired keyunits will be discarded.
Parameters:
the new value
Since : 1.24
gst_rtsp_media_factory_set_eos_shutdown
gst_rtsp_media_factory_set_eos_shutdown (GstRTSPMediaFactory * factory, gboolean eos_shutdown)
Configure if media created from this factory will have an EOS sent to the pipeline before shutdown.
GstRtspServer.RTSPMediaFactory.prototype.set_eos_shutdown
function GstRtspServer.RTSPMediaFactory.prototype.set_eos_shutdown(eos_shutdown: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_set_eos_shutdown'
}
Configure if media created from this factory will have an EOS sent to the pipeline before shutdown.
Parameters:
the new value
GstRtspServer.RTSPMediaFactory.set_eos_shutdown
def GstRtspServer.RTSPMediaFactory.set_eos_shutdown (self, eos_shutdown):
#python wrapper for 'gst_rtsp_media_factory_set_eos_shutdown'
Configure if media created from this factory will have an EOS sent to the pipeline before shutdown.
Parameters:
the new value
gst_rtsp_media_factory_set_latency
gst_rtsp_media_factory_set_latency (GstRTSPMediaFactory * factory, guint latency)
Configure the latency used for receiving media
GstRtspServer.RTSPMediaFactory.prototype.set_latency
function GstRtspServer.RTSPMediaFactory.prototype.set_latency(latency: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_set_latency'
}
Configure the latency used for receiving media
Parameters:
latency in milliseconds
GstRtspServer.RTSPMediaFactory.set_latency
def GstRtspServer.RTSPMediaFactory.set_latency (self, latency):
#python wrapper for 'gst_rtsp_media_factory_set_latency'
Configure the latency used for receiving media
Parameters:
latency in milliseconds
gst_rtsp_media_factory_set_launch
gst_rtsp_media_factory_set_launch (GstRTSPMediaFactory * factory, const gchar * launch)
The gst_parse_launch line to use for constructing the pipeline in the default prepare vmethod.
The pipeline description should return a GstBin as the toplevel element which can be accomplished by enclosing the description with brackets '(' ')'.
The description should return a pipeline with payloaders named pay0, pay1, etc.. Each of the payloaders will result in a stream.
GstRtspServer.RTSPMediaFactory.prototype.set_launch
function GstRtspServer.RTSPMediaFactory.prototype.set_launch(launch: String): {
// javascript wrapper for 'gst_rtsp_media_factory_set_launch'
}
The Gst.prototype.parse_launch line to use for constructing the pipeline in the default prepare vmethod.
The pipeline description should return a GstBin as the toplevel element which can be accomplished by enclosing the description with brackets '(' ')'.
The description should return a pipeline with payloaders named pay0, pay1, etc.. Each of the payloaders will result in a stream.
Parameters:
the launch description
GstRtspServer.RTSPMediaFactory.set_launch
def GstRtspServer.RTSPMediaFactory.set_launch (self, launch):
#python wrapper for 'gst_rtsp_media_factory_set_launch'
The Gst.parse_launch line to use for constructing the pipeline in the default prepare vmethod.
The pipeline description should return a GstBin as the toplevel element which can be accomplished by enclosing the description with brackets '(' ')'.
The description should return a pipeline with payloaders named pay0, pay1, etc.. Each of the payloaders will result in a stream.
Parameters:
the launch description
gst_rtsp_media_factory_set_max_mcast_ttl
gboolean gst_rtsp_media_factory_set_max_mcast_ttl (GstRTSPMediaFactory * factory, 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.RTSPMediaFactory.prototype.set_max_mcast_ttl
function GstRtspServer.RTSPMediaFactory.prototype.set_max_mcast_ttl(ttl: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_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.RTSPMediaFactory.set_max_mcast_ttl
def GstRtspServer.RTSPMediaFactory.set_max_mcast_ttl (self, ttl):
#python wrapper for 'gst_rtsp_media_factory_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_media_factory_set_media_gtype
gst_rtsp_media_factory_set_media_gtype (GstRTSPMediaFactory * factory, GType media_gtype)
Configure the GType of the GstRTSPMedia subclass to create (by default, overridden construct vmethods may of course do something different)
Since : 1.6
GstRtspServer.RTSPMediaFactory.prototype.set_media_gtype
function GstRtspServer.RTSPMediaFactory.prototype.set_media_gtype(media_gtype: GObject.Type): {
// javascript wrapper for 'gst_rtsp_media_factory_set_media_gtype'
}
Configure the GType of the GstRTSPMedia subclass to create (by default, overridden construct vmethods may of course do something different)
Parameters:
the GType of the class to create
Since : 1.6
GstRtspServer.RTSPMediaFactory.set_media_gtype
def GstRtspServer.RTSPMediaFactory.set_media_gtype (self, media_gtype):
#python wrapper for 'gst_rtsp_media_factory_set_media_gtype'
Configure the GType of the GstRTSPMedia subclass to create (by default, overridden construct vmethods may of course do something different)
Parameters:
the GType of the class to create
Since : 1.6
gst_rtsp_media_factory_set_multicast_iface
gst_rtsp_media_factory_set_multicast_iface (GstRTSPMediaFactory * factory, const gchar * multicast_iface)
configure multicast_iface to be used for factory.
Parameters:
factory
–
multicast_iface
(
[transfer: none][nullable])
–
a multicast interface name
GstRtspServer.RTSPMediaFactory.prototype.set_multicast_iface
function GstRtspServer.RTSPMediaFactory.prototype.set_multicast_iface(multicast_iface: String): {
// javascript wrapper for 'gst_rtsp_media_factory_set_multicast_iface'
}
configure multicast_iface to be used for factory.
Parameters:
a multicast interface name
GstRtspServer.RTSPMediaFactory.set_multicast_iface
def GstRtspServer.RTSPMediaFactory.set_multicast_iface (self, multicast_iface):
#python wrapper for 'gst_rtsp_media_factory_set_multicast_iface'
configure multicast_iface to be used for factory.
Parameters:
a multicast interface name
gst_rtsp_media_factory_set_permissions
gst_rtsp_media_factory_set_permissions (GstRTSPMediaFactory * factory, GstRTSPPermissions * permissions)
Set permissions on factory.
Parameters:
factory
–
permissions
(
[transfer: none][nullable])
–
GstRtspServer.RTSPMediaFactory.prototype.set_permissions
function GstRtspServer.RTSPMediaFactory.prototype.set_permissions(permissions: GstRtspServer.RTSPPermissions): {
// javascript wrapper for 'gst_rtsp_media_factory_set_permissions'
}
Set permissions on factory.
Parameters:
GstRtspServer.RTSPMediaFactory.set_permissions
def GstRtspServer.RTSPMediaFactory.set_permissions (self, permissions):
#python wrapper for 'gst_rtsp_media_factory_set_permissions'
Set permissions on factory.
Parameters:
gst_rtsp_media_factory_set_profiles
gst_rtsp_media_factory_set_profiles (GstRTSPMediaFactory * factory, GstRTSPProfile profiles)
Configure the allowed profiles for factory.
GstRtspServer.RTSPMediaFactory.prototype.set_profiles
function GstRtspServer.RTSPMediaFactory.prototype.set_profiles(profiles: GstRtsp.RTSPProfile): {
// javascript wrapper for 'gst_rtsp_media_factory_set_profiles'
}
Configure the allowed profiles for factory.
Parameters:
the new flags
GstRtspServer.RTSPMediaFactory.set_profiles
def GstRtspServer.RTSPMediaFactory.set_profiles (self, profiles):
#python wrapper for 'gst_rtsp_media_factory_set_profiles'
Configure the allowed profiles for factory.
Parameters:
the new flags
gst_rtsp_media_factory_set_protocols
gst_rtsp_media_factory_set_protocols (GstRTSPMediaFactory * factory, GstRTSPLowerTrans protocols)
Configure the allowed lower transport for factory.
GstRtspServer.RTSPMediaFactory.prototype.set_protocols
function GstRtspServer.RTSPMediaFactory.prototype.set_protocols(protocols: GstRtsp.RTSPLowerTrans): {
// javascript wrapper for 'gst_rtsp_media_factory_set_protocols'
}
Configure the allowed lower transport for factory.
Parameters:
the new flags
GstRtspServer.RTSPMediaFactory.set_protocols
def GstRtspServer.RTSPMediaFactory.set_protocols (self, protocols):
#python wrapper for 'gst_rtsp_media_factory_set_protocols'
Configure the allowed lower transport for factory.
Parameters:
the new flags
gst_rtsp_media_factory_set_publish_clock_mode
gst_rtsp_media_factory_set_publish_clock_mode (GstRTSPMediaFactory * factory, GstRTSPPublishClockMode mode)
Sets if and how the media clock should be published according to RFC7273.
Since : 1.8
GstRtspServer.RTSPMediaFactory.prototype.set_publish_clock_mode
function GstRtspServer.RTSPMediaFactory.prototype.set_publish_clock_mode(mode: GstRtspServer.RTSPPublishClockMode): {
// javascript wrapper for 'gst_rtsp_media_factory_set_publish_clock_mode'
}
Sets if and how the media clock should be published according to RFC7273.
Parameters:
the clock publish mode
Since : 1.8
GstRtspServer.RTSPMediaFactory.set_publish_clock_mode
def GstRtspServer.RTSPMediaFactory.set_publish_clock_mode (self, mode):
#python wrapper for 'gst_rtsp_media_factory_set_publish_clock_mode'
Sets if and how the media clock should be published according to RFC7273.
Parameters:
the clock publish mode
Since : 1.8
gst_rtsp_media_factory_set_retransmission_time
gst_rtsp_media_factory_set_retransmission_time (GstRTSPMediaFactory * factory, GstClockTime time)
Configure the time to store for possible retransmission
GstRtspServer.RTSPMediaFactory.prototype.set_retransmission_time
function GstRtspServer.RTSPMediaFactory.prototype.set_retransmission_time(time: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_set_retransmission_time'
}
Configure the time to store for possible retransmission
Parameters:
GstRtspServer.RTSPMediaFactory.set_retransmission_time
def GstRtspServer.RTSPMediaFactory.set_retransmission_time (self, time):
#python wrapper for 'gst_rtsp_media_factory_set_retransmission_time'
Configure the time to store for possible retransmission
Parameters:
gst_rtsp_media_factory_set_stop_on_disconnect
gst_rtsp_media_factory_set_stop_on_disconnect (GstRTSPMediaFactory * factory, gboolean stop_on_disconnect)
Configure if media created from this factory should be stopped when a client disconnects without sending TEARDOWN.
GstRtspServer.RTSPMediaFactory.prototype.set_stop_on_disconnect
function GstRtspServer.RTSPMediaFactory.prototype.set_stop_on_disconnect(stop_on_disconnect: Number): {
// javascript wrapper for 'gst_rtsp_media_factory_set_stop_on_disconnect'
}
Configure if media created from this factory should be stopped when a client disconnects without sending TEARDOWN.
Parameters:
the new value
GstRtspServer.RTSPMediaFactory.set_stop_on_disconnect
def GstRtspServer.RTSPMediaFactory.set_stop_on_disconnect (self, stop_on_disconnect):
#python wrapper for 'gst_rtsp_media_factory_set_stop_on_disconnect'
Configure if media created from this factory should be stopped when a client disconnects without sending TEARDOWN.
Parameters:
the new value
gst_rtsp_media_factory_set_suspend_mode
gst_rtsp_media_factory_set_suspend_mode (GstRTSPMediaFactory * factory, GstRTSPSuspendMode mode)
Configure how media created from this factory will be suspended.
GstRtspServer.RTSPMediaFactory.prototype.set_suspend_mode
function GstRtspServer.RTSPMediaFactory.prototype.set_suspend_mode(mode: GstRtspServer.RTSPSuspendMode): {
// javascript wrapper for 'gst_rtsp_media_factory_set_suspend_mode'
}
Configure how media created from this factory will be suspended.
GstRtspServer.RTSPMediaFactory.set_suspend_mode
def GstRtspServer.RTSPMediaFactory.set_suspend_mode (self, mode):
#python wrapper for 'gst_rtsp_media_factory_set_suspend_mode'
Configure how media created from this factory will be suspended.
gst_rtsp_media_factory_set_transport_mode
gst_rtsp_media_factory_set_transport_mode (GstRTSPMediaFactory * factory, GstRTSPTransportMode mode)
Configure if this factory creates media for PLAY or RECORD modes.
GstRtspServer.RTSPMediaFactory.prototype.set_transport_mode
function GstRtspServer.RTSPMediaFactory.prototype.set_transport_mode(mode: GstRtspServer.RTSPTransportMode): {
// javascript wrapper for 'gst_rtsp_media_factory_set_transport_mode'
}
Configure if this factory creates media for PLAY or RECORD modes.
Parameters:
the new value
GstRtspServer.RTSPMediaFactory.set_transport_mode
def GstRtspServer.RTSPMediaFactory.set_transport_mode (self, mode):
#python wrapper for 'gst_rtsp_media_factory_set_transport_mode'
Configure if this factory creates media for PLAY or RECORD modes.
Parameters:
the new value
Signals
media-configure
media_configure_callback (GstRTSPMediaFactory * self, GstRTSPMedia * object, gpointer user_data)
Parameters:
self
–
object
–
user_data
–
Flags: Run Last
media-configure
function media_configure_callback(self: GstRtspServer.RTSPMediaFactory, object: GstRtspServer.RTSPMedia, user_data: Object): {
// javascript callback for the 'media-configure' signal
}
Parameters:
Flags: Run Last
media-configure
def media_configure_callback (self, object, *user_data):
#python callback for the 'media-configure' signal
Parameters:
Flags: Run Last
media-constructed
media_constructed_callback (GstRTSPMediaFactory * self, GstRTSPMedia * object, gpointer user_data)
Parameters:
self
–
object
–
user_data
–
Flags: Run Last
media-constructed
function media_constructed_callback(self: GstRtspServer.RTSPMediaFactory, object: GstRtspServer.RTSPMedia, user_data: Object): {
// javascript callback for the 'media-constructed' signal
}
Parameters:
Flags: Run Last
media-constructed
def media_constructed_callback (self, object, *user_data):
#python callback for the 'media-constructed' signal
Parameters:
Flags: Run Last
Properties
enable-rtcp
“enable-rtcp” gboolean
Whether the created media should send and receive RTCP
Flags : Read / Write
Since : 1.20
enable-rtcp
“enable-rtcp” Number
Whether the created media should send and receive RTCP
Flags : Read / Write
Since : 1.20
enable_rtcp
“self.props.enable_rtcp” bool
Whether the created media should send and receive RTCP
Flags : Read / Write
Since : 1.20
ensure-keyunit-on-start
“ensure-keyunit-on-start” gboolean
If media from this factory should ensure a key unit when a client connects.
This property will ensure that the stream always starts on a key unit instead of a delta unit which the client would not be able to decode.
Note that this will only affect non-shared medias for now.
Flags : Read / Write
Since : 1.24
ensure-keyunit-on-start
“ensure-keyunit-on-start” Number
If media from this factory should ensure a key unit when a client connects.
This property will ensure that the stream always starts on a key unit instead of a delta unit which the client would not be able to decode.
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
If media from this factory should ensure a key unit when a client connects.
This property will ensure that the stream always starts on a key unit instead of a delta unit which the client would not be able to decode.
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
Timeout in milliseconds used to determine if a keyunit should be discarded when a client connects.
If the timeout has been reached a new keyframe will be forced, otherwise the currently blocking keyframe will be used.
This options is only relevant when ensure-keyunit-on-start is enabled.
Flags : Read / Write
Since : 1.24
ensure-keyunit-on-start-timeout
“ensure-keyunit-on-start-timeout” Number
Timeout in milliseconds used to determine if a keyunit should be discarded when a client connects.
If the timeout has been reached a new keyframe will be forced, otherwise the currently blocking keyframe will be used.
This options is only relevant 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
Timeout in milliseconds used to determine if a keyunit should be discarded when a client connects.
If the timeout has been reached a new keyframe will be forced, otherwise the currently blocking keyframe will be used.
This options is only relevant when ensure-keyunit-on-start is enabled.
Flags : Read / Write
Since : 1.24
Virtual Methods
configure
configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media)
configure the media created with construct. The default implementation will configure the 'shared' property of the media.
Parameters:
factory
–
media
–
vfunc_configure
function vfunc_configure(factory: GstRtspServer.RTSPMediaFactory, media: GstRtspServer.RTSPMedia): {
// javascript implementation of the 'configure' virtual method
}
configure the media created with construct. The default implementation will configure the 'shared' property of the media.
Parameters:
do_configure
def do_configure (factory, media):
#python implementation of the 'configure' virtual method
configure the media created with construct. The default implementation will configure the 'shared' property of the media.
Parameters:
construct
GstRTSPMedia * construct (GstRTSPMediaFactory * factory, const GstRTSPUrl * url)
the vmethod that will be called when the factory has to create the GstRTSPMedia for url. The default implementation of this function calls create_element to retrieve an element and then looks for pay%d to create the streams.
Parameters:
factory
–
url
–
vfunc_construct
function vfunc_construct(factory: GstRtspServer.RTSPMediaFactory, url: GstRtsp.RTSPUrl): {
// javascript implementation of the 'construct' virtual method
}
the vmethod that will be called when the factory has to create the GstRtspServer.RTSPMedia for url. The default implementation of this function calls create_element to retrieve an element and then looks for pay%d to create the streams.
Parameters:
do_construct
def do_construct (factory, url):
#python implementation of the 'construct' virtual method
the vmethod that will be called when the factory has to create the GstRtspServer.RTSPMedia for url. The default implementation of this function calls create_element to retrieve an element and then looks for pay%d to create the streams.
Parameters:
create_element
GstElement * create_element (GstRTSPMediaFactory * factory, const GstRTSPUrl * url)
Construct and return a GstElement that is a GstBin containing the elements to use for streaming the media. The bin should contain payloaders pay%d for each stream. The default implementation of this function returns the bin created from the launch parameter.
Parameters:
factory
–
url
–
vfunc_create_element
function vfunc_create_element(factory: GstRtspServer.RTSPMediaFactory, url: GstRtsp.RTSPUrl): {
// javascript implementation of the 'create_element' virtual method
}
Construct and return a Gst.Element that is a Gst.Bin containing the elements to use for streaming the media. The bin should contain payloaders pay%d for each stream. The default implementation of this function returns the bin created from the launch parameter.
Parameters:
do_create_element
def do_create_element (factory, url):
#python implementation of the 'create_element' virtual method
Construct and return a Gst.Element that is a Gst.Bin containing the elements to use for streaming the media. The bin should contain payloaders pay%d for each stream. The default implementation of this function returns the bin created from the launch parameter.
Parameters:
create_pipeline
GstElement * create_pipeline (GstRTSPMediaFactory * factory, GstRTSPMedia * media)
create a new pipeline or re-use an existing one and add the GstRTSPMedia's element created by construct to the pipeline.
Parameters:
factory
–
media
–
gen_key
gchar * gen_key (GstRTSPMediaFactory * factory, const GstRTSPUrl * url)
convert url to a key for caching shared GstRTSPMedia objects. The default implementation of this function will use the complete URL including the query parameters to return a key.
Parameters:
factory
–
url
–
vfunc_gen_key
function vfunc_gen_key(factory: GstRtspServer.RTSPMediaFactory, url: GstRtsp.RTSPUrl): {
// javascript implementation of the 'gen_key' virtual method
}
convert url to a key for caching shared GstRtspServer.RTSPMedia objects. The default implementation of this function will use the complete URL including the query parameters to return a key.
Parameters:
do_gen_key
def do_gen_key (factory, url):
#python implementation of the 'gen_key' virtual method
convert url to a key for caching shared GstRtspServer.RTSPMedia objects. The default implementation of this function will use the complete URL including the query parameters to return a key.
Parameters:
media_configure
media_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media)
signal emitted when a media should be configured
Parameters:
factory
–
media
–
vfunc_media_configure
function vfunc_media_configure(factory: GstRtspServer.RTSPMediaFactory, media: GstRtspServer.RTSPMedia): {
// javascript implementation of the 'media_configure' virtual method
}
signal emitted when a media should be configured
Parameters:
do_media_configure
def do_media_configure (factory, media):
#python implementation of the 'media_configure' virtual method
signal emitted when a media should be configured
Parameters:
media_constructed
media_constructed (GstRTSPMediaFactory * factory, GstRTSPMedia * media)
signal emitted when a media was constructed
Parameters:
factory
–
media
–
vfunc_media_constructed
function vfunc_media_constructed(factory: GstRtspServer.RTSPMediaFactory, media: GstRtspServer.RTSPMedia): {
// javascript implementation of the 'media_constructed' virtual method
}
signal emitted when a media was constructed
Parameters:
do_media_constructed
def do_media_constructed (factory, media):
#python implementation of the 'media_constructed' virtual method
signal emitted when a media was constructed
Parameters:
Function Macros
GST_RTSP_MEDIA_FACTORY_CAST
#define GST_RTSP_MEDIA_FACTORY_CAST(obj) ((GstRTSPMediaFactory*)(obj))
GST_RTSP_MEDIA_FACTORY_CLASS_CAST
#define GST_RTSP_MEDIA_FACTORY_CLASS_CAST(klass) ((GstRTSPMediaFactoryClass*)(klass))
The results of the search are