rtsp client
The client object handles the connection with a client for as long as a TCP connection is open.
A GstRTSPClient is created by GstRTSPServer when a new connection is accepted and it inherits the GstRTSPMountPoints, GstRTSPSessionPool, GstRTSPAuth and GstRTSPThreadPool from the server.
The client connection should be configured with the GstRTSPConnection using gst_rtsp_client_set_connection before it can be attached to a GMainContext using gst_rtsp_client_attach. From then on the client will handle requests on the connection.
Use gst_rtsp_client_session_filter to iterate or modify all the GstRTSPSession objects managed by the client object.
Last reviewed on 2013-07-11 (1.0.0)
GstRTSPClient
GObject ╰──GstRTSPClient ╰──GstRTSPOnvifClient
The client object represents the connection and its state with a client.
Members
parent
(GObject)
–
Class structure
GstRTSPClientClass
The client class structure.
Fields
parent_class
(GObjectClass)
–
GstRtspServer.RTSPClientClass
The client class structure.
Attributes
parent_class
(GObject.ObjectClass)
–
GstRtspServer.RTSPClientClass
The client class structure.
Attributes
parent_class
(GObject.ObjectClass)
–
GstRtspServer.RTSPClient
GObject.Object ╰──GstRtspServer.RTSPClient ╰──GstRtspServer.RTSPOnvifClient
The client object represents the connection and its state with a client.
Members
parent
(GObject.Object)
–
GstRtspServer.RTSPClient
GObject.Object ╰──GstRtspServer.RTSPClient ╰──GstRtspServer.RTSPOnvifClient
The client object represents the connection and its state with a client.
Members
parent
(GObject.Object)
–
Constructors
gst_rtsp_client_new
GstRTSPClient * gst_rtsp_client_new ()
Create a new GstRTSPClient instance.
a new GstRTSPClient
GstRtspServer.RTSPClient.prototype.new
function GstRtspServer.RTSPClient.prototype.new(): {
// javascript wrapper for 'gst_rtsp_client_new'
}
Create a new GstRtspServer.RTSPClient instance.
a new GstRtspServer.RTSPClient
GstRtspServer.RTSPClient.new
def GstRtspServer.RTSPClient.new ():
#python wrapper for 'gst_rtsp_client_new'
Create a new GstRtspServer.RTSPClient instance.
a new GstRtspServer.RTSPClient
Methods
gst_rtsp_client_attach
guint gst_rtsp_client_attach (GstRTSPClient * client, GMainContext * context)
Attaches client to context. When the mainloop for context is run, the client will be dispatched. When context is NULL, the default context will be used).
This function should be called when the client properties and urls are fully configured and the client is ready to start.
the ID (greater than 0) for the source within the GMainContext.
GstRtspServer.RTSPClient.prototype.attach
function GstRtspServer.RTSPClient.prototype.attach(context: GMainContext (not introspectable)): {
// javascript wrapper for 'gst_rtsp_client_attach'
}
Attaches client to context. When the mainloop for context is run, the client will be dispatched. When context is null, the default context will be used).
This function should be called when the client properties and urls are fully configured and the client is ready to start.
Parameters:
the ID (greater than 0) for the source within the GMainContext.
GstRtspServer.RTSPClient.attach
def GstRtspServer.RTSPClient.attach (self, context):
#python wrapper for 'gst_rtsp_client_attach'
Attaches client to context. When the mainloop for context is run, the client will be dispatched. When context is None, the default context will be used).
This function should be called when the client properties and urls are fully configured and the client is ready to start.
Parameters:
the ID (greater than 0) for the source within the GMainContext.
gst_rtsp_client_close
gst_rtsp_client_close (GstRTSPClient * client)
Close the connection of client and remove all media it was managing.
Parameters:
client
–
Since : 1.4
GstRtspServer.RTSPClient.prototype.close
function GstRtspServer.RTSPClient.prototype.close(): {
// javascript wrapper for 'gst_rtsp_client_close'
}
Close the connection of client and remove all media it was managing.
Parameters:
Since : 1.4
GstRtspServer.RTSPClient.close
def GstRtspServer.RTSPClient.close (self):
#python wrapper for 'gst_rtsp_client_close'
Close the connection of client and remove all media it was managing.
Parameters:
Since : 1.4
gst_rtsp_client_get_auth
GstRTSPAuth * gst_rtsp_client_get_auth (GstRTSPClient * client)
Get the GstRTSPAuth used as the authentication manager of client.
Parameters:
client
–
the GstRTSPAuth of client. g_object_unref after usage.
GstRtspServer.RTSPClient.prototype.get_auth
function GstRtspServer.RTSPClient.prototype.get_auth(): {
// javascript wrapper for 'gst_rtsp_client_get_auth'
}
Get the GstRtspServer.RTSPAuth used as the authentication manager of client.
Parameters:
the GstRtspServer.RTSPAuth of client. GObject.Object.prototype.unref after usage.
GstRtspServer.RTSPClient.get_auth
def GstRtspServer.RTSPClient.get_auth (self):
#python wrapper for 'gst_rtsp_client_get_auth'
Get the GstRtspServer.RTSPAuth used as the authentication manager of client.
Parameters:
the GstRtspServer.RTSPAuth of client. GObject.Object.unref after usage.
gst_rtsp_client_get_connection
GstRTSPConnection * gst_rtsp_client_get_connection (GstRTSPClient * client)
Get the GstRTSPConnection of client.
Parameters:
client
–
the GstRTSPConnection of client. The connection object returned remains valid until the client is freed.
GstRtspServer.RTSPClient.prototype.get_connection
function GstRtspServer.RTSPClient.prototype.get_connection(): {
// javascript wrapper for 'gst_rtsp_client_get_connection'
}
Get the GstRtsp.RTSPConnection of client.
Parameters:
the GstRtsp.RTSPConnection of client. The connection object returned remains valid until the client is freed.
GstRtspServer.RTSPClient.get_connection
def GstRtspServer.RTSPClient.get_connection (self):
#python wrapper for 'gst_rtsp_client_get_connection'
Get the GstRtsp.RTSPConnection of client.
Parameters:
the GstRtsp.RTSPConnection of client. The connection object returned remains valid until the client is freed.
gst_rtsp_client_get_content_length_limit
guint gst_rtsp_client_get_content_length_limit (GstRTSPClient * client)
Get the Content-Length limit of client.
Parameters:
client
–
the Content-Length limit.
Since : 1.18
GstRtspServer.RTSPClient.prototype.get_content_length_limit
function GstRtspServer.RTSPClient.prototype.get_content_length_limit(): {
// javascript wrapper for 'gst_rtsp_client_get_content_length_limit'
}
Get the Content-Length limit of client.
Parameters:
the Content-Length limit.
Since : 1.18
GstRtspServer.RTSPClient.get_content_length_limit
def GstRtspServer.RTSPClient.get_content_length_limit (self):
#python wrapper for 'gst_rtsp_client_get_content_length_limit'
Get the Content-Length limit of client.
Parameters:
the Content-Length limit.
Since : 1.18
gst_rtsp_client_get_mount_points
GstRTSPMountPoints * gst_rtsp_client_get_mount_points (GstRTSPClient * client)
Get the GstRTSPMountPoints object that client uses to manage its sessions.
Parameters:
client
–
a GstRTSPMountPoints, unref after usage.
GstRtspServer.RTSPClient.prototype.get_mount_points
function GstRtspServer.RTSPClient.prototype.get_mount_points(): {
// javascript wrapper for 'gst_rtsp_client_get_mount_points'
}
Get the GstRtspServer.RTSPMountPoints object that client uses to manage its sessions.
Parameters:
a GstRtspServer.RTSPMountPoints, unref after usage.
GstRtspServer.RTSPClient.get_mount_points
def GstRtspServer.RTSPClient.get_mount_points (self):
#python wrapper for 'gst_rtsp_client_get_mount_points'
Get the GstRtspServer.RTSPMountPoints object that client uses to manage its sessions.
Parameters:
a GstRtspServer.RTSPMountPoints, unref after usage.
gst_rtsp_client_get_session_pool
GstRTSPSessionPool * gst_rtsp_client_get_session_pool (GstRTSPClient * client)
Get the GstRTSPSessionPool object that client uses to manage its sessions.
Parameters:
client
–
a GstRTSPSessionPool, unref after usage.
GstRtspServer.RTSPClient.prototype.get_session_pool
function GstRtspServer.RTSPClient.prototype.get_session_pool(): {
// javascript wrapper for 'gst_rtsp_client_get_session_pool'
}
Get the GstRtspServer.RTSPSessionPool object that client uses to manage its sessions.
Parameters:
a GstRtspServer.RTSPSessionPool, unref after usage.
GstRtspServer.RTSPClient.get_session_pool
def GstRtspServer.RTSPClient.get_session_pool (self):
#python wrapper for 'gst_rtsp_client_get_session_pool'
Get the GstRtspServer.RTSPSessionPool object that client uses to manage its sessions.
Parameters:
a GstRtspServer.RTSPSessionPool, unref after usage.
gst_rtsp_client_get_stream_transport
GstRTSPStreamTransport * gst_rtsp_client_get_stream_transport (GstRTSPClient * client, guint8 channel)
This is useful when providing a send function through gst_rtsp_client_set_send_func when doing RTSP over TCP: the send function must call gst_rtsp_stream_transport_message_sent () on the appropriate transport when data has been received for streaming to continue.
Parameters:
client
–
channel
–
the GstRTSPStreamTransport associated with channel.
Since : 1.18
GstRtspServer.RTSPClient.prototype.get_stream_transport
function GstRtspServer.RTSPClient.prototype.get_stream_transport(channel: Number): {
// javascript wrapper for 'gst_rtsp_client_get_stream_transport'
}
This is useful when providing a send function through GstRtspServer.RTSPClient.prototype.set_send_func when doing RTSP over TCP: the send function must call gst_rtsp_stream_transport_message_sent () on the appropriate transport when data has been received for streaming to continue.
Parameters:
the GstRtspServer.RTSPStreamTransport associated with channel.
Since : 1.18
GstRtspServer.RTSPClient.get_stream_transport
def GstRtspServer.RTSPClient.get_stream_transport (self, channel):
#python wrapper for 'gst_rtsp_client_get_stream_transport'
This is useful when providing a send function through GstRtspServer.RTSPClient.set_send_func when doing RTSP over TCP: the send function must call gst_rtsp_stream_transport_message_sent () on the appropriate transport when data has been received for streaming to continue.
Parameters:
the GstRtspServer.RTSPStreamTransport associated with channel.
Since : 1.18
gst_rtsp_client_get_thread_pool
GstRTSPThreadPool * gst_rtsp_client_get_thread_pool (GstRTSPClient * client)
Get the GstRTSPThreadPool used as the thread pool of client.
Parameters:
client
–
the GstRTSPThreadPool of client. g_object_unref after usage.
GstRtspServer.RTSPClient.prototype.get_thread_pool
function GstRtspServer.RTSPClient.prototype.get_thread_pool(): {
// javascript wrapper for 'gst_rtsp_client_get_thread_pool'
}
Get the GstRtspServer.RTSPThreadPool used as the thread pool of client.
Parameters:
the GstRtspServer.RTSPThreadPool of client. GObject.Object.prototype.unref after usage.
GstRtspServer.RTSPClient.get_thread_pool
def GstRtspServer.RTSPClient.get_thread_pool (self):
#python wrapper for 'gst_rtsp_client_get_thread_pool'
Get the GstRtspServer.RTSPThreadPool used as the thread pool of client.
Parameters:
the GstRtspServer.RTSPThreadPool of client. GObject.Object.unref after usage.
gst_rtsp_client_handle_message
GstRTSPResult gst_rtsp_client_handle_message (GstRTSPClient * client, GstRTSPMessage * message)
Let the client handle message.
GstRtspServer.RTSPClient.prototype.handle_message
function GstRtspServer.RTSPClient.prototype.handle_message(message: GstRtsp.RTSPMessage): {
// javascript wrapper for 'gst_rtsp_client_handle_message'
}
Let the client handle message.
Parameters:
GstRtspServer.RTSPClient.handle_message
def GstRtspServer.RTSPClient.handle_message (self, message):
#python wrapper for 'gst_rtsp_client_handle_message'
Let the client handle message.
Parameters:
gst_rtsp_client_send_message
GstRTSPResult gst_rtsp_client_send_message (GstRTSPClient * client, GstRTSPSession * session, GstRTSPMessage * message)
Send a message message to the remote end. message must be a GST_RTSP_MESSAGE_REQUEST or a GST_RTSP_MESSAGE_RESPONSE.
Parameters:
client
–
session
(
[allow-none][transfer: none])
–
a GstRTSPSession to send the message to or NULL
message
(
[transfer: none])
–
The GstRTSPMessage to send
GstRtspServer.RTSPClient.prototype.send_message
function GstRtspServer.RTSPClient.prototype.send_message(session: GstRtspServer.RTSPSession, message: GstRtsp.RTSPMessage): {
// javascript wrapper for 'gst_rtsp_client_send_message'
}
Send a message message to the remote end. message must be a GstRtsp.RTSPMsgType.REQUEST or a GstRtsp.RTSPMsgType.RESPONSE.
Parameters:
a GstRtspServer.RTSPSession to send the message to or null
The GstRtsp.RTSPMessage to send
GstRtspServer.RTSPClient.send_message
def GstRtspServer.RTSPClient.send_message (self, session, message):
#python wrapper for 'gst_rtsp_client_send_message'
Send a message message to the remote end. message must be a GstRtsp.RTSPMsgType.REQUEST or a GstRtsp.RTSPMsgType.RESPONSE.
Parameters:
a GstRtspServer.RTSPSession to send the message to or None
The GstRtsp.RTSPMessage to send
gst_rtsp_client_session_filter
GList * gst_rtsp_client_session_filter (GstRTSPClient * client, GstRTSPClientSessionFilterFunc func, gpointer user_data)
Call func for each session managed by client. The result value of func determines what happens to the session. func will be called with client locked so no further actions on client can be performed from func.
If func returns GST_RTSP_FILTER_REMOVE, the session will be removed from client.
If func returns GST_RTSP_FILTER_KEEP, the session will remain in client.
If func returns GST_RTSP_FILTER_REF, the session will remain in client but will also be added with an additional ref to the result GList of this function..
When func is NULL, GST_RTSP_FILTER_REF will be assumed for each session.
Parameters:
client
–
func
(
[scope call][allow-none])
–
a callback
user_data
–
user data passed to func
a GList with all sessions for which func returned GST_RTSP_FILTER_REF. After usage, each element in the GList should be unreffed before the list is freed.
GstRtspServer.RTSPClient.prototype.session_filter
function GstRtspServer.RTSPClient.prototype.session_filter(func: GstRtspServer.RTSPClientSessionFilterFunc, user_data: Object): {
// javascript wrapper for 'gst_rtsp_client_session_filter'
}
Call func for each session managed by client. The result value of func determines what happens to the session. func will be called with client locked so no further actions on client can be performed from func.
If func returns GstRtspServer.RTSPFilterResult.REMOVE, the session will be removed from client.
If func returns GstRtspServer.RTSPFilterResult.KEEP, the session will remain in client.
If func returns GstRtspServer.RTSPFilterResult.REF, the session will remain in client but will also be added with an additional ref to the result GLib.List of this function..
When func is null, GstRtspServer.RTSPFilterResult.REF will be assumed for each session.
Parameters:
a callback
user data passed to func
a GLib.List with all sessions for which func returned GstRtspServer.RTSPFilterResult.REF. After usage, each element in the GLib.List should be unreffed before the list is freed.
GstRtspServer.RTSPClient.session_filter
def GstRtspServer.RTSPClient.session_filter (self, func, *user_data):
#python wrapper for 'gst_rtsp_client_session_filter'
Call func for each session managed by client. The result value of func determines what happens to the session. func will be called with client locked so no further actions on client can be performed from func.
If func returns GstRtspServer.RTSPFilterResult.REMOVE, the session will be removed from client.
If func returns GstRtspServer.RTSPFilterResult.KEEP, the session will remain in client.
If func returns GstRtspServer.RTSPFilterResult.REF, the session will remain in client but will also be added with an additional ref to the result GLib.List of this function..
When func is None, GstRtspServer.RTSPFilterResult.REF will be assumed for each session.
Parameters:
a callback
user data passed to func
a GLib.List with all sessions for which func returned GstRtspServer.RTSPFilterResult.REF. After usage, each element in the GLib.List should be unreffed before the list is freed.
gst_rtsp_client_set_auth
gst_rtsp_client_set_auth (GstRTSPClient * client, GstRTSPAuth * auth)
configure auth to be used as the authentication manager of client.
GstRtspServer.RTSPClient.prototype.set_auth
function GstRtspServer.RTSPClient.prototype.set_auth(auth: GstRtspServer.RTSPAuth): {
// javascript wrapper for 'gst_rtsp_client_set_auth'
}
configure auth to be used as the authentication manager of client.
Parameters:
GstRtspServer.RTSPClient.set_auth
def GstRtspServer.RTSPClient.set_auth (self, auth):
#python wrapper for 'gst_rtsp_client_set_auth'
configure auth to be used as the authentication manager of client.
Parameters:
gst_rtsp_client_set_connection
gboolean gst_rtsp_client_set_connection (GstRTSPClient * client, GstRTSPConnection * conn)
Set the GstRTSPConnection of client. This function takes ownership of conn.
TRUE on success.
GstRtspServer.RTSPClient.prototype.set_connection
function GstRtspServer.RTSPClient.prototype.set_connection(conn: GstRtsp.RTSPConnection): {
// javascript wrapper for 'gst_rtsp_client_set_connection'
}
Set the GstRtsp.RTSPConnection of client. This function takes ownership of conn.
Parameters:
GstRtspServer.RTSPClient.set_connection
def GstRtspServer.RTSPClient.set_connection (self, conn):
#python wrapper for 'gst_rtsp_client_set_connection'
Set the GstRtsp.RTSPConnection of client. This function takes ownership of conn.
Parameters:
gst_rtsp_client_set_content_length_limit
gst_rtsp_client_set_content_length_limit (GstRTSPClient * client, guint limit)
Configure client to use the specified Content-Length limit.
Define an appropriate request size limit and reject requests exceeding the limit with response status 413 Request Entity Too Large
Since : 1.18
GstRtspServer.RTSPClient.prototype.set_content_length_limit
function GstRtspServer.RTSPClient.prototype.set_content_length_limit(limit: Number): {
// javascript wrapper for 'gst_rtsp_client_set_content_length_limit'
}
Configure client to use the specified Content-Length limit.
Define an appropriate request size limit and reject requests exceeding the limit with response status 413 Request Entity Too Large
Parameters:
Content-Length limit
Since : 1.18
GstRtspServer.RTSPClient.set_content_length_limit
def GstRtspServer.RTSPClient.set_content_length_limit (self, limit):
#python wrapper for 'gst_rtsp_client_set_content_length_limit'
Configure client to use the specified Content-Length limit.
Define an appropriate request size limit and reject requests exceeding the limit with response status 413 Request Entity Too Large
Parameters:
Content-Length limit
Since : 1.18
gst_rtsp_client_set_mount_points
gst_rtsp_client_set_mount_points (GstRTSPClient * client, GstRTSPMountPoints * mounts)
Set mounts as the mount points for client which it will use to map urls to media streams. These mount points are usually inherited from the server that created the client but can be overriden later.
GstRtspServer.RTSPClient.prototype.set_mount_points
function GstRtspServer.RTSPClient.prototype.set_mount_points(mounts: GstRtspServer.RTSPMountPoints): {
// javascript wrapper for 'gst_rtsp_client_set_mount_points'
}
Set mounts as the mount points for client which it will use to map urls to media streams. These mount points are usually inherited from the server that created the client but can be overriden later.
Parameters:
GstRtspServer.RTSPClient.set_mount_points
def GstRtspServer.RTSPClient.set_mount_points (self, mounts):
#python wrapper for 'gst_rtsp_client_set_mount_points'
Set mounts as the mount points for client which it will use to map urls to media streams. These mount points are usually inherited from the server that created the client but can be overriden later.
Parameters:
gst_rtsp_client_set_send_func
gst_rtsp_client_set_send_func (GstRTSPClient * client, GstRTSPClientSendFunc func, gpointer user_data, GDestroyNotify notify)
Set func as the callback that will be called when a new message needs to be sent to the client. user_data is passed to func and notify is called when user_data is no longer in use.
By default, the client will send the messages on the GstRTSPConnection that was configured with gst_rtsp_client_attach was called.
It is only allowed to set either a send_func
or a send_messages_func
but not both at the same time.
Parameters:
client
–
func
(
[scope notified][closure])
–
user_data
–
user data passed to func
notify
(
[allow-none])
–
called when user_data is no longer in use
GstRtspServer.RTSPClient.prototype.set_send_func
function GstRtspServer.RTSPClient.prototype.set_send_func(func: GstRtspServer.RTSPClientSendFunc, user_data: Object): {
// javascript wrapper for 'gst_rtsp_client_set_send_func'
}
Set func as the callback that will be called when a new message needs to be sent to the client. user_data is passed to func and notify is called when user_data is no longer in use.
By default, the client will send the messages on the GstRtsp.RTSPConnection that was configured with GstRtspServer.RTSPClient.prototype.attach was called.
It is only allowed to set either a send_func
or a send_messages_func
but not both at the same time.
Parameters:
user data passed to func
GstRtspServer.RTSPClient.set_send_func
def GstRtspServer.RTSPClient.set_send_func (self, func, *user_data):
#python wrapper for 'gst_rtsp_client_set_send_func'
Set func as the callback that will be called when a new message needs to be sent to the client. user_data is passed to func and notify is called when user_data is no longer in use.
By default, the client will send the messages on the GstRtsp.RTSPConnection that was configured with GstRtspServer.RTSPClient.attach was called.
It is only allowed to set either a send_func
or a send_messages_func
but not both at the same time.
Parameters:
user data passed to func
gst_rtsp_client_set_send_messages_func
gst_rtsp_client_set_send_messages_func (GstRTSPClient * client, GstRTSPClientSendMessagesFunc func, gpointer user_data, GDestroyNotify notify)
Set func as the callback that will be called when new messages needs to be sent to the client. user_data is passed to func and notify is called when user_data is no longer in use.
By default, the client will send the messages on the GstRTSPConnection that was configured with gst_rtsp_client_attach was called.
It is only allowed to set either a send_func
or a send_messages_func
but not both at the same time.
Parameters:
client
–
func
(
[scope notified][closure])
–
user_data
–
user data passed to func
notify
(
[allow-none])
–
called when user_data is no longer in use
Since : 1.16
GstRtspServer.RTSPClient.prototype.set_send_messages_func
function GstRtspServer.RTSPClient.prototype.set_send_messages_func(func: GstRtspServer.RTSPClientSendMessagesFunc, user_data: Object): {
// javascript wrapper for 'gst_rtsp_client_set_send_messages_func'
}
Set func as the callback that will be called when new messages needs to be sent to the client. user_data is passed to func and notify is called when user_data is no longer in use.
By default, the client will send the messages on the GstRtsp.RTSPConnection that was configured with GstRtspServer.RTSPClient.prototype.attach was called.
It is only allowed to set either a send_func
or a send_messages_func
but not both at the same time.
Parameters:
user data passed to func
Since : 1.16
GstRtspServer.RTSPClient.set_send_messages_func
def GstRtspServer.RTSPClient.set_send_messages_func (self, func, *user_data):
#python wrapper for 'gst_rtsp_client_set_send_messages_func'
Set func as the callback that will be called when new messages needs to be sent to the client. user_data is passed to func and notify is called when user_data is no longer in use.
By default, the client will send the messages on the GstRtsp.RTSPConnection that was configured with GstRtspServer.RTSPClient.attach was called.
It is only allowed to set either a send_func
or a send_messages_func
but not both at the same time.
Parameters:
user data passed to func
Since : 1.16
gst_rtsp_client_set_session_pool
gst_rtsp_client_set_session_pool (GstRTSPClient * client, GstRTSPSessionPool * pool)
Set pool as the sessionpool for client which it will use to find or allocate sessions. the sessionpool is usually inherited from the server that created the client but can be overridden later.
GstRtspServer.RTSPClient.prototype.set_session_pool
function GstRtspServer.RTSPClient.prototype.set_session_pool(pool: GstRtspServer.RTSPSessionPool): {
// javascript wrapper for 'gst_rtsp_client_set_session_pool'
}
Set pool as the sessionpool for client which it will use to find or allocate sessions. the sessionpool is usually inherited from the server that created the client but can be overridden later.
Parameters:
GstRtspServer.RTSPClient.set_session_pool
def GstRtspServer.RTSPClient.set_session_pool (self, pool):
#python wrapper for 'gst_rtsp_client_set_session_pool'
Set pool as the sessionpool for client which it will use to find or allocate sessions. the sessionpool is usually inherited from the server that created the client but can be overridden later.
Parameters:
gst_rtsp_client_set_thread_pool
gst_rtsp_client_set_thread_pool (GstRTSPClient * client, GstRTSPThreadPool * pool)
configure pool to be used as the thread pool of client.
GstRtspServer.RTSPClient.prototype.set_thread_pool
function GstRtspServer.RTSPClient.prototype.set_thread_pool(pool: GstRtspServer.RTSPThreadPool): {
// javascript wrapper for 'gst_rtsp_client_set_thread_pool'
}
configure pool to be used as the thread pool of client.
Parameters:
GstRtspServer.RTSPClient.set_thread_pool
def GstRtspServer.RTSPClient.set_thread_pool (self, pool):
#python wrapper for 'gst_rtsp_client_set_thread_pool'
configure pool to be used as the thread pool of client.
Parameters:
Signals
announce-request
announce_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
announce-request
function announce_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'announce-request' signal
}
Parameters:
Flags: Run Last
announce-request
def announce_request_callback (self, ctx, *user_data):
#python callback for the 'announce-request' signal
Parameters:
Flags: Run Last
check-requirements
gchar * check_requirements_callback (GstRTSPClient * self, GstRTSPContext * ctx, utf8* arr, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
arr
–
a NULL-terminated array of strings
user_data
–
a newly allocated string with comma-separated list of unsupported options. An empty string must be returned if all options are supported.
Flags: Run Last
Since : 1.6
check-requirements
function check_requirements_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, arr: [ String ], user_data: Object): {
// javascript callback for the 'check-requirements' signal
}
Parameters:
a NULL-terminated array of strings
a newly allocated string with comma-separated list of unsupported options. An empty string must be returned if all options are supported.
Flags: Run Last
Since : 1.6
check-requirements
def check_requirements_callback (self, ctx, arr, *user_data):
#python callback for the 'check-requirements' signal
Parameters:
a NULL-terminated array of strings
a newly allocated string with comma-separated list of unsupported options. An empty string must be returned if all options are supported.
Flags: Run Last
Since : 1.6
closed
closed_callback (GstRTSPClient * self, gpointer user_data)
Parameters:
self
–
user_data
–
Flags: Run Last
closed
function closed_callback(self: GstRtspServer.RTSPClient, user_data: Object): {
// javascript callback for the 'closed' signal
}
Parameters:
Flags: Run Last
closed
def closed_callback (self, *user_data):
#python callback for the 'closed' signal
Parameters:
Flags: Run Last
describe-request
describe_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
describe-request
function describe_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'describe-request' signal
}
Parameters:
Flags: Run Last
describe-request
def describe_request_callback (self, ctx, *user_data):
#python callback for the 'describe-request' signal
Parameters:
Flags: Run Last
get-parameter-request
get_parameter_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
get-parameter-request
function get_parameter_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'get-parameter-request' signal
}
Parameters:
Flags: Run Last
get-parameter-request
def get_parameter_request_callback (self, ctx, *user_data):
#python callback for the 'get-parameter-request' signal
Parameters:
Flags: Run Last
handle-response
handle_response_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
handle-response
function handle_response_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'handle-response' signal
}
Parameters:
Flags: Run Last
handle-response
def handle_response_callback (self, ctx, *user_data):
#python callback for the 'handle-response' signal
Parameters:
Flags: Run Last
new-session
new_session_callback (GstRTSPClient * self, GstRTSPSession * object, gpointer user_data)
Parameters:
self
–
object
–
user_data
–
Flags: Run Last
new-session
function new_session_callback(self: GstRtspServer.RTSPClient, object: GstRtspServer.RTSPSession, user_data: Object): {
// javascript callback for the 'new-session' signal
}
Parameters:
Flags: Run Last
new-session
def new_session_callback (self, object, *user_data):
#python callback for the 'new-session' signal
Parameters:
Flags: Run Last
options-request
options_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
options-request
function options_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'options-request' signal
}
Parameters:
Flags: Run Last
options-request
def options_request_callback (self, ctx, *user_data):
#python callback for the 'options-request' signal
Parameters:
Flags: Run Last
pause-request
pause_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
pause-request
function pause_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pause-request' signal
}
Parameters:
Flags: Run Last
pause-request
def pause_request_callback (self, ctx, *user_data):
#python callback for the 'pause-request' signal
Parameters:
Flags: Run Last
play-request
play_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
play-request
function play_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'play-request' signal
}
Parameters:
Flags: Run Last
play-request
def play_request_callback (self, ctx, *user_data):
#python callback for the 'play-request' signal
Parameters:
Flags: Run Last
pre-announce-request
GstRTSPStatusCode * pre_announce_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
a GstRTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-announce-request
function pre_announce_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pre-announce-request' signal
}
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-announce-request
def pre_announce_request_callback (self, ctx, *user_data):
#python callback for the 'pre-announce-request' signal
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-describe-request
GstRTSPStatusCode * pre_describe_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
a GstRTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-describe-request
function pre_describe_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pre-describe-request' signal
}
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-describe-request
def pre_describe_request_callback (self, ctx, *user_data):
#python callback for the 'pre-describe-request' signal
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-get-parameter-request
GstRTSPStatusCode * pre_get_parameter_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
a GstRTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-get-parameter-request
function pre_get_parameter_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pre-get-parameter-request' signal
}
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-get-parameter-request
def pre_get_parameter_request_callback (self, ctx, *user_data):
#python callback for the 'pre-get-parameter-request' signal
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-options-request
GstRTSPStatusCode * pre_options_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
a GstRTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-options-request
function pre_options_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pre-options-request' signal
}
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-options-request
def pre_options_request_callback (self, ctx, *user_data):
#python callback for the 'pre-options-request' signal
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-pause-request
GstRTSPStatusCode * pre_pause_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
a GstRTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-pause-request
function pre_pause_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pre-pause-request' signal
}
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-pause-request
def pre_pause_request_callback (self, ctx, *user_data):
#python callback for the 'pre-pause-request' signal
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-play-request
GstRTSPStatusCode * pre_play_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
a GstRTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-play-request
function pre_play_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pre-play-request' signal
}
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-play-request
def pre_play_request_callback (self, ctx, *user_data):
#python callback for the 'pre-play-request' signal
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-record-request
GstRTSPStatusCode * pre_record_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
a GstRTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-record-request
function pre_record_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pre-record-request' signal
}
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-record-request
def pre_record_request_callback (self, ctx, *user_data):
#python callback for the 'pre-record-request' signal
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-set-parameter-request
GstRTSPStatusCode * pre_set_parameter_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
a GstRTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-set-parameter-request
function pre_set_parameter_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pre-set-parameter-request' signal
}
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-set-parameter-request
def pre_set_parameter_request_callback (self, ctx, *user_data):
#python callback for the 'pre-set-parameter-request' signal
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-setup-request
GstRTSPStatusCode * pre_setup_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
a GstRTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-setup-request
function pre_setup_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pre-setup-request' signal
}
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-setup-request
def pre_setup_request_callback (self, ctx, *user_data):
#python callback for the 'pre-setup-request' signal
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-teardown-request
GstRTSPStatusCode * pre_teardown_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
a GstRTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-teardown-request
function pre_teardown_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'pre-teardown-request' signal
}
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
pre-teardown-request
def pre_teardown_request_callback (self, ctx, *user_data):
#python callback for the 'pre-teardown-request' signal
Parameters:
a GstRtsp.RTSPStatusCode, GST_RTSP_STS_OK in case of success, otherwise an appropriate return code
Flags: Run Last
Since : 1.12
record-request
record_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
record-request
function record_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'record-request' signal
}
Parameters:
Flags: Run Last
record-request
def record_request_callback (self, ctx, *user_data):
#python callback for the 'record-request' signal
Parameters:
Flags: Run Last
send-message
send_message_callback (GstRTSPClient * self, GstRTSPSession * session, gpointer message, gpointer user_data)
Parameters:
self
–
session
(
[typeGstRtspServer.RTSPSession])
–
The session
message
(
[typeGstRtsp.RTSPMessage])
–
The message
user_data
–
Flags: Run Last
send-message
function send_message_callback(self: GstRtspServer.RTSPClient, session: GstRtspServer.RTSPSession, message: GstRtsp.RTSPMessage, user_data: Object): {
// javascript callback for the 'send-message' signal
}
Parameters:
The session
The message
Flags: Run Last
send-message
def send_message_callback (self, session, message, *user_data):
#python callback for the 'send-message' signal
Parameters:
The session
The message
Flags: Run Last
set-parameter-request
set_parameter_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
set-parameter-request
function set_parameter_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'set-parameter-request' signal
}
Parameters:
Flags: Run Last
set-parameter-request
def set_parameter_request_callback (self, ctx, *user_data):
#python callback for the 'set-parameter-request' signal
Parameters:
Flags: Run Last
setup-request
setup_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
setup-request
function setup_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'setup-request' signal
}
Parameters:
Flags: Run Last
setup-request
def setup_request_callback (self, ctx, *user_data):
#python callback for the 'setup-request' signal
Parameters:
Flags: Run Last
teardown-request
teardown_request_callback (GstRTSPClient * self, GstRTSPContext * ctx, gpointer user_data)
Parameters:
self
–
ctx
(
[typeGstRtspServer.RTSPContext])
–
user_data
–
Flags: Run Last
teardown-request
function teardown_request_callback(self: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, user_data: Object): {
// javascript callback for the 'teardown-request' signal
}
Parameters:
Flags: Run Last
teardown-request
def teardown_request_callback (self, ctx, *user_data):
#python callback for the 'teardown-request' signal
Parameters:
Flags: Run Last
Properties
Virtual Methods
adjust_error_code
GstRTSPStatusCode adjust_error_code (GstRTSPClient * client, GstRTSPContext * ctx, GstRTSPStatusCode code)
Called before sending error response to give the application the possibility to adjust the error code.
a GstRTSPStatusCode, containing the adjusted error code.
Since : 1.22
vfunc_adjust_error_code
function vfunc_adjust_error_code(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, code: GstRtsp.RTSPStatusCode): {
// javascript implementation of the 'adjust_error_code' virtual method
}
Called before sending error response to give the application the possibility to adjust the error code.
Parameters:
a GstRtsp.RTSPStatusCode, containing the adjusted error code.
Since : 1.22
do_adjust_error_code
def do_adjust_error_code (client, ctx, code):
#python implementation of the 'adjust_error_code' virtual method
Called before sending error response to give the application the possibility to adjust the error code.
Parameters:
a GstRtsp.RTSPStatusCode, containing the adjusted error code.
Since : 1.22
adjust_play_mode
GstRTSPStatusCode adjust_play_mode (GstRTSPClient * client, GstRTSPContext * context, GstRTSPTimeRange ** range, GstSeekFlags * flags, gdouble * rate, GstClockTime * trickmode_interval, gboolean * enable_rate_control)
called to give the application the possibility to adjust the range, seek flags, rate and rate-control. Since 1.18
Parameters:
client
–
context
–
range
–
flags
–
rate
–
trickmode_interval
–
enable_rate_control
–
vfunc_adjust_play_mode
function vfunc_adjust_play_mode(client: GstRtspServer.RTSPClient, context: GstRtspServer.RTSPContext, range: GstRtsp.RTSPTimeRange, flags: Gst.SeekFlags, rate: Number, trickmode_interval: Number, enable_rate_control: Number): {
// javascript implementation of the 'adjust_play_mode' virtual method
}
called to give the application the possibility to adjust the range, seek flags, rate and rate-control. Since 1.18
Parameters:
do_adjust_play_mode
def do_adjust_play_mode (client, context, range, flags, rate, trickmode_interval, enable_rate_control):
#python implementation of the 'adjust_play_mode' virtual method
called to give the application the possibility to adjust the range, seek flags, rate and rate-control. Since 1.18
Parameters:
adjust_play_response
GstRTSPStatusCode adjust_play_response (GstRTSPClient * client, GstRTSPContext * context)
called to give the implementation the possibility to adjust the response to a play request, for example if extra headers were parsed when adjust_play_mode was called. Since 1.18
Parameters:
client
–
context
–
vfunc_adjust_play_response
function vfunc_adjust_play_response(client: GstRtspServer.RTSPClient, context: GstRtspServer.RTSPContext): {
// javascript implementation of the 'adjust_play_response' virtual method
}
called to give the implementation the possibility to adjust the response to a play request, for example if extra headers were parsed when vfunc_adjust_play_mode was called. Since 1.18
Parameters:
do_adjust_play_response
def do_adjust_play_response (client, context):
#python implementation of the 'adjust_play_response' virtual method
called to give the implementation the possibility to adjust the response to a play request, for example if extra headers were parsed when do_adjust_play_mode was called. Since 1.18
Parameters:
announce_request
announce_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_announce_request
function vfunc_announce_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'announce_request' virtual method
}
Parameters:
do_announce_request
def do_announce_request (client, ctx):
#python implementation of the 'announce_request' virtual method
Parameters:
check_requirements
gchar * check_requirements (GstRTSPClient * client, GstRTSPContext * ctx, gchar ** arr)
Parameters:
client
–
ctx
–
arr
–
vfunc_check_requirements
function vfunc_check_requirements(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, arr: String): {
// javascript implementation of the 'check_requirements' virtual method
}
Parameters:
do_check_requirements
def do_check_requirements (client, ctx, arr):
#python implementation of the 'check_requirements' virtual method
Parameters:
vfunc_closed
function vfunc_closed(client: GstRtspServer.RTSPClient): {
// javascript implementation of the 'closed' virtual method
}
Parameters:
do_closed
def do_closed (client):
#python implementation of the 'closed' virtual method
Parameters:
configure_client_media
gboolean configure_client_media (GstRTSPClient * client, GstRTSPMedia * media, GstRTSPStream * stream, GstRTSPContext * ctx)
called when the stream in media needs to be configured. The default implementation will configure the blocksize on the payloader when spcified in the request headers.
Parameters:
client
–
media
–
stream
–
ctx
–
vfunc_configure_client_media
function vfunc_configure_client_media(client: GstRtspServer.RTSPClient, media: GstRtspServer.RTSPMedia, stream: GstRtspServer.RTSPStream, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'configure_client_media' virtual method
}
called when the stream in media needs to be configured. The default implementation will configure the blocksize on the payloader when spcified in the request headers.
Parameters:
do_configure_client_media
def do_configure_client_media (client, media, stream, ctx):
#python implementation of the 'configure_client_media' virtual method
called when the stream in media needs to be configured. The default implementation will configure the blocksize on the payloader when spcified in the request headers.
Parameters:
configure_client_transport
gboolean configure_client_transport (GstRTSPClient * client, GstRTSPContext * ctx, GstRTSPTransport * ct)
called when the client transport needs to be configured.
Parameters:
client
–
ctx
–
ct
–
vfunc_configure_client_transport
function vfunc_configure_client_transport(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, ct: GstRtsp.RTSPTransport): {
// javascript implementation of the 'configure_client_transport' virtual method
}
called when the client transport needs to be configured.
Parameters:
do_configure_client_transport
def do_configure_client_transport (client, ctx, ct):
#python implementation of the 'configure_client_transport' virtual method
called when the client transport needs to be configured.
Parameters:
create_sdp
GstSDPMessage * create_sdp (GstRTSPClient * client, GstRTSPMedia * media)
called when the SDP needs to be created for media.
Parameters:
client
–
media
–
vfunc_create_sdp
function vfunc_create_sdp(client: GstRtspServer.RTSPClient, media: GstRtspServer.RTSPMedia): {
// javascript implementation of the 'create_sdp' virtual method
}
called when the SDP needs to be created for media.
Parameters:
do_create_sdp
def do_create_sdp (client, media):
#python implementation of the 'create_sdp' virtual method
called when the SDP needs to be created for media.
Parameters:
describe_request
describe_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_describe_request
function vfunc_describe_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'describe_request' virtual method
}
Parameters:
do_describe_request
def do_describe_request (client, ctx):
#python implementation of the 'describe_request' virtual method
Parameters:
get_parameter_request
get_parameter_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_get_parameter_request
function vfunc_get_parameter_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'get_parameter_request' virtual method
}
Parameters:
do_get_parameter_request
def do_get_parameter_request (client, ctx):
#python implementation of the 'get_parameter_request' virtual method
Parameters:
handle_response
handle_response (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_handle_response
function vfunc_handle_response(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'handle_response' virtual method
}
Parameters:
do_handle_response
def do_handle_response (client, ctx):
#python implementation of the 'handle_response' virtual method
Parameters:
handle_sdp
gboolean handle_sdp (GstRTSPClient * client, GstRTSPContext * ctx, GstRTSPMedia * media, GstSDPMessage * sdp)
Parameters:
client
–
ctx
–
media
–
sdp
–
vfunc_handle_sdp
function vfunc_handle_sdp(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, media: GstRtspServer.RTSPMedia, sdp: GstSdp.SDPMessage): {
// javascript implementation of the 'handle_sdp' virtual method
}
Parameters:
do_handle_sdp
def do_handle_sdp (client, ctx, media, sdp):
#python implementation of the 'handle_sdp' virtual method
Parameters:
make_path_from_uri
gchar * make_path_from_uri (GstRTSPClient * client, const GstRTSPUrl * uri)
called to create path from uri.
Parameters:
client
–
uri
–
vfunc_make_path_from_uri
function vfunc_make_path_from_uri(client: GstRtspServer.RTSPClient, uri: GstRtsp.RTSPUrl): {
// javascript implementation of the 'make_path_from_uri' virtual method
}
called to create path from uri.
Parameters:
do_make_path_from_uri
def do_make_path_from_uri (client, uri):
#python implementation of the 'make_path_from_uri' virtual method
called to create path from uri.
Parameters:
new_session
new_session (GstRTSPClient * client, GstRTSPSession * session)
Parameters:
client
–
session
–
vfunc_new_session
function vfunc_new_session(client: GstRtspServer.RTSPClient, session: GstRtspServer.RTSPSession): {
// javascript implementation of the 'new_session' virtual method
}
Parameters:
do_new_session
def do_new_session (client, session):
#python implementation of the 'new_session' virtual method
Parameters:
options_request
options_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_options_request
function vfunc_options_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'options_request' virtual method
}
Parameters:
do_options_request
def do_options_request (client, ctx):
#python implementation of the 'options_request' virtual method
Parameters:
params_get
GstRTSPResult params_get (GstRTSPClient * client, GstRTSPContext * ctx)
get parameters. This function should also initialize the RTSP response(ctx->response) via a call to gst_rtsp_message_init_response
Parameters:
client
–
ctx
–
vfunc_params_get
function vfunc_params_get(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'params_get' virtual method
}
get parameters. This function should also initialize the RTSP response(ctx->response) via a call to GstRtsp.RTSPMessage.prototype.init_response
Parameters:
do_params_get
def do_params_get (client, ctx):
#python implementation of the 'params_get' virtual method
get parameters. This function should also initialize the RTSP response(ctx->response) via a call to GstRtsp.RTSPMessage.init_response
Parameters:
params_set
GstRTSPResult params_set (GstRTSPClient * client, GstRTSPContext * ctx)
set parameters. This function should also initialize the RTSP response(ctx->response) via a call to gst_rtsp_message_init_response
Parameters:
client
–
ctx
–
vfunc_params_set
function vfunc_params_set(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'params_set' virtual method
}
set parameters. This function should also initialize the RTSP response(ctx->response) via a call to GstRtsp.RTSPMessage.prototype.init_response
Parameters:
do_params_set
def do_params_set (client, ctx):
#python implementation of the 'params_set' virtual method
set parameters. This function should also initialize the RTSP response(ctx->response) via a call to GstRtsp.RTSPMessage.init_response
Parameters:
pause_request
pause_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pause_request
function vfunc_pause_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pause_request' virtual method
}
Parameters:
do_pause_request
def do_pause_request (client, ctx):
#python implementation of the 'pause_request' virtual method
Parameters:
play_request
play_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_play_request
function vfunc_play_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'play_request' virtual method
}
Parameters:
do_play_request
def do_play_request (client, ctx):
#python implementation of the 'play_request' virtual method
Parameters:
pre_announce_request
GstRTSPStatusCode pre_announce_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pre_announce_request
function vfunc_pre_announce_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pre_announce_request' virtual method
}
Parameters:
do_pre_announce_request
def do_pre_announce_request (client, ctx):
#python implementation of the 'pre_announce_request' virtual method
Parameters:
pre_describe_request
GstRTSPStatusCode pre_describe_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pre_describe_request
function vfunc_pre_describe_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pre_describe_request' virtual method
}
Parameters:
do_pre_describe_request
def do_pre_describe_request (client, ctx):
#python implementation of the 'pre_describe_request' virtual method
Parameters:
pre_get_parameter_request
GstRTSPStatusCode pre_get_parameter_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pre_get_parameter_request
function vfunc_pre_get_parameter_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pre_get_parameter_request' virtual method
}
Parameters:
do_pre_get_parameter_request
def do_pre_get_parameter_request (client, ctx):
#python implementation of the 'pre_get_parameter_request' virtual method
Parameters:
pre_options_request
GstRTSPStatusCode pre_options_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pre_options_request
function vfunc_pre_options_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pre_options_request' virtual method
}
Parameters:
do_pre_options_request
def do_pre_options_request (client, ctx):
#python implementation of the 'pre_options_request' virtual method
Parameters:
pre_pause_request
GstRTSPStatusCode pre_pause_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pre_pause_request
function vfunc_pre_pause_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pre_pause_request' virtual method
}
Parameters:
do_pre_pause_request
def do_pre_pause_request (client, ctx):
#python implementation of the 'pre_pause_request' virtual method
Parameters:
pre_play_request
GstRTSPStatusCode pre_play_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pre_play_request
function vfunc_pre_play_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pre_play_request' virtual method
}
Parameters:
do_pre_play_request
def do_pre_play_request (client, ctx):
#python implementation of the 'pre_play_request' virtual method
Parameters:
pre_record_request
GstRTSPStatusCode pre_record_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pre_record_request
function vfunc_pre_record_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pre_record_request' virtual method
}
Parameters:
do_pre_record_request
def do_pre_record_request (client, ctx):
#python implementation of the 'pre_record_request' virtual method
Parameters:
pre_set_parameter_request
GstRTSPStatusCode pre_set_parameter_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pre_set_parameter_request
function vfunc_pre_set_parameter_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pre_set_parameter_request' virtual method
}
Parameters:
do_pre_set_parameter_request
def do_pre_set_parameter_request (client, ctx):
#python implementation of the 'pre_set_parameter_request' virtual method
Parameters:
pre_setup_request
GstRTSPStatusCode pre_setup_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pre_setup_request
function vfunc_pre_setup_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pre_setup_request' virtual method
}
Parameters:
do_pre_setup_request
def do_pre_setup_request (client, ctx):
#python implementation of the 'pre_setup_request' virtual method
Parameters:
pre_teardown_request
GstRTSPStatusCode pre_teardown_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_pre_teardown_request
function vfunc_pre_teardown_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'pre_teardown_request' virtual method
}
Parameters:
do_pre_teardown_request
def do_pre_teardown_request (client, ctx):
#python implementation of the 'pre_teardown_request' virtual method
Parameters:
record_request
record_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_record_request
function vfunc_record_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'record_request' virtual method
}
Parameters:
do_record_request
def do_record_request (client, ctx):
#python implementation of the 'record_request' virtual method
Parameters:
send_message
send_message (GstRTSPClient * client, GstRTSPContext * ctx, GstRTSPMessage * response)
Parameters:
client
–
ctx
–
response
–
vfunc_send_message
function vfunc_send_message(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext, response: GstRtsp.RTSPMessage): {
// javascript implementation of the 'send_message' virtual method
}
Parameters:
do_send_message
def do_send_message (client, ctx, response):
#python implementation of the 'send_message' virtual method
Parameters:
set_parameter_request
set_parameter_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_set_parameter_request
function vfunc_set_parameter_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'set_parameter_request' virtual method
}
Parameters:
do_set_parameter_request
def do_set_parameter_request (client, ctx):
#python implementation of the 'set_parameter_request' virtual method
Parameters:
setup_request
setup_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_setup_request
function vfunc_setup_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'setup_request' virtual method
}
Parameters:
do_setup_request
def do_setup_request (client, ctx):
#python implementation of the 'setup_request' virtual method
Parameters:
teardown_request
teardown_request (GstRTSPClient * client, GstRTSPContext * ctx)
Parameters:
client
–
ctx
–
vfunc_teardown_request
function vfunc_teardown_request(client: GstRtspServer.RTSPClient, ctx: GstRtspServer.RTSPContext): {
// javascript implementation of the 'teardown_request' virtual method
}
Parameters:
do_teardown_request
def do_teardown_request (client, ctx):
#python implementation of the 'teardown_request' virtual method
Parameters:
tunnel_http_response
tunnel_http_response (GstRTSPClient * client, GstRTSPMessage * request, GstRTSPMessage * response)
called when a response to the GET request is about to be sent for a tunneled connection. The response can be modified. Since: 1.4
Parameters:
client
–
request
–
response
–
vfunc_tunnel_http_response
function vfunc_tunnel_http_response(client: GstRtspServer.RTSPClient, request: GstRtsp.RTSPMessage, response: GstRtsp.RTSPMessage): {
// javascript implementation of the 'tunnel_http_response' virtual method
}
called when a response to the GET request is about to be sent for a tunneled connection. The response can be modified. Since: 1.4
Parameters:
do_tunnel_http_response
def do_tunnel_http_response (client, request, response):
#python implementation of the 'tunnel_http_response' virtual method
called when a response to the GET request is about to be sent for a tunneled connection. The response can be modified. Since: 1.4
Parameters:
Function Macros
GST_RTSP_CLIENT_CAST
#define GST_RTSP_CLIENT_CAST(obj) ((GstRTSPClient*)(obj))
GST_RTSP_CLIENT_CLASS_CAST
#define GST_RTSP_CLIENT_CLASS_CAST(klass) ((GstRTSPClientClass*)(klass))
Callbacks
GstRTSPClientSendFunc
gboolean (*GstRTSPClientSendFunc) (GstRTSPClient * client, GstRTSPMessage * message, gboolean close, gpointer user_data)
This callback is called when client wants to send message. When close is TRUE, the connection should be closed when the message has been sent.
Parameters:
client
–
message
–
close
–
close the connection
user_data
–
user data when registering the callback
TRUE on success.
GstRtspServer.RTSPClientSendFunc
function GstRtspServer.RTSPClientSendFunc(client: GstRtspServer.RTSPClient, message: GstRtsp.RTSPMessage, close: Number, user_data: Object): {
// javascript wrapper for 'GstRTSPClientSendFunc'
}
This callback is called when client wants to send message. When close is true, the connection should be closed when the message has been sent.
Parameters:
close the connection
user data when registering the callback
GstRtspServer.RTSPClientSendFunc
def GstRtspServer.RTSPClientSendFunc (client, message, close, *user_data):
#python wrapper for 'GstRTSPClientSendFunc'
This callback is called when client wants to send message. When close is True, the connection should be closed when the message has been sent.
Parameters:
close the connection
user data when registering the callback
GstRTSPClientSendMessagesFunc
gboolean (*GstRTSPClientSendMessagesFunc) (GstRTSPClient * client, GstRTSPMessage * messages, guint n_messages, gboolean close, gpointer user_data)
This callback is called when client wants to send messages. When close is TRUE, the connection should be closed when the message has been sent.
Parameters:
client
–
messages
–
n_messages
–
number of messages
close
–
close the connection
user_data
–
user data when registering the callback
TRUE on success.
Since : 1.16
GstRtspServer.RTSPClientSendMessagesFunc
function GstRtspServer.RTSPClientSendMessagesFunc(client: GstRtspServer.RTSPClient, messages: GstRtsp.RTSPMessage, n_messages: Number, close: Number, user_data: Object): {
// javascript wrapper for 'GstRTSPClientSendMessagesFunc'
}
This callback is called when client wants to send messages. When close is true, the connection should be closed when the message has been sent.
Parameters:
number of messages
close the connection
user data when registering the callback
Since : 1.16
GstRtspServer.RTSPClientSendMessagesFunc
def GstRtspServer.RTSPClientSendMessagesFunc (client, messages, n_messages, close, *user_data):
#python wrapper for 'GstRTSPClientSendMessagesFunc'
This callback is called when client wants to send messages. When close is True, the connection should be closed when the message has been sent.
Parameters:
number of messages
close the connection
user data when registering the callback
Since : 1.16
GstRTSPClientSessionFilterFunc
GstRTSPFilterResult (*GstRTSPClientSessionFilterFunc) (GstRTSPClient * client, GstRTSPSession * sess, gpointer user_data)
This function will be called by the gst_rtsp_client_session_filter. An implementation should return a value of GstRTSPFilterResult.
When this function returns GST_RTSP_FILTER_REMOVE, sess will be removed from client.
A return value of GST_RTSP_FILTER_KEEP will leave sess untouched in client.
A value of GST_RTSP_FILTER_REF will add sess to the result GList of gst_rtsp_client_session_filter.
Parameters:
client
–
a GstRTSPClient object
sess
–
a GstRTSPSession in client
user_data
–
user data that has been given to gst_rtsp_client_session_filter
GstRtspServer.RTSPClientSessionFilterFunc
function GstRtspServer.RTSPClientSessionFilterFunc(client: GstRtspServer.RTSPClient, sess: GstRtspServer.RTSPSession, user_data: Object): {
// javascript wrapper for 'GstRTSPClientSessionFilterFunc'
}
This function will be called by the GstRtspServer.RTSPClient.prototype.session_filter. An implementation should return a value of GstRtspServer.RTSPFilterResult.
When this function returns GstRtspServer.RTSPFilterResult.REMOVE, sess will be removed from client.
A return value of GstRtspServer.RTSPFilterResult.KEEP will leave sess untouched in client.
A value of GstRtspServer.RTSPFilterResult.REF will add sess to the result GLib.List of GstRtspServer.RTSPClient.prototype.session_filter.
Parameters:
a GstRtspServer.RTSPClient object
a GstRtspServer.RTSPSession in client
user data that has been given to GstRtspServer.RTSPClient.prototype.session_filter
GstRtspServer.RTSPClientSessionFilterFunc
def GstRtspServer.RTSPClientSessionFilterFunc (client, sess, *user_data):
#python wrapper for 'GstRTSPClientSessionFilterFunc'
This function will be called by the GstRtspServer.RTSPClient.session_filter. An implementation should return a value of GstRtspServer.RTSPFilterResult.
When this function returns GstRtspServer.RTSPFilterResult.REMOVE, sess will be removed from client.
A return value of GstRtspServer.RTSPFilterResult.KEEP will leave sess untouched in client.
A value of GstRtspServer.RTSPFilterResult.REF will add sess to the result GLib.List of GstRtspServer.RTSPClient.session_filter.
Parameters:
a GstRtspServer.RTSPClient object
a GstRtspServer.RTSPSession in client
user data that has been given to GstRtspServer.RTSPClient.session_filter
The results of the search are