![]() |
![]() |
![]() |
GStreamer RTSP Server Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
struct GstRTSPClient; struct GstRTSPClientClass; GstRTSPClient * gst_rtsp_client_new (void
); void gst_rtsp_client_set_server (GstRTSPClient *client
,GstRTSPServer *server
); GstRTSPServer * gst_rtsp_client_get_server (GstRTSPClient *client
); void gst_rtsp_client_set_session_pool (GstRTSPClient *client
,GstRTSPSessionPool *pool
); GstRTSPSessionPool * gst_rtsp_client_get_session_pool (GstRTSPClient *client
); void gst_rtsp_client_set_media_mapping (GstRTSPClient *client
,GstRTSPMediaMapping *mapping
); GstRTSPMediaMapping * gst_rtsp_client_get_media_mapping (GstRTSPClient *client
); void gst_rtsp_client_set_auth (GstRTSPClient *client
,GstRTSPAuth *auth
); GstRTSPAuth * gst_rtsp_client_get_auth (GstRTSPClient *client
); gboolean gst_rtsp_client_accept (GstRTSPClient *client
,GIOChannel *channel
);
"media-mapping" GstRTSPMediaMapping* : Read / Write "session-pool" GstRTSPSessionPool* : Read / Write
struct GstRTSPClient;
connection
: the connection object handling the client request.
watch
: watch for the connection
watchid
: id of the watch
ip
: ip address used by the client to connect to us
session_pool
: handle to the session pool used by the client.
media_mapping
: handle to the media mapping used by the client.
uri
: cached uri
media
: cached media
streams
: a list of streams using connection
.
sessions
: a list of sessions managed by connection
.
The client structure.
struct GstRTSPClientClass { GObjectClass parent_class; /* signals */ void (*closed) (GstRTSPClient *client); };
GstRTSPClient * gst_rtsp_client_new (void
);
Create a new GstRTSPClient instance.
Returns : |
a new GstRTSPClient |
void gst_rtsp_client_set_server (GstRTSPClient *client
,GstRTSPServer *server
);
Set server
as the server that created client
.
|
a GstRTSPClient |
|
a GstRTSPServer |
GstRTSPServer * gst_rtsp_client_get_server (GstRTSPClient *client
);
Get the GstRTSPServer object that client
was created from.
|
a GstRTSPClient |
Returns : |
a GstRTSPServer, unref after usage. |
void 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.
|
a GstRTSPClient |
|
a GstRTSPSessionPool |
GstRTSPSessionPool * gst_rtsp_client_get_session_pool (GstRTSPClient *client
);
Get the GstRTSPSessionPool object that client
uses to manage its sessions.
|
a GstRTSPClient |
Returns : |
a GstRTSPSessionPool, unref after usage. |
void gst_rtsp_client_set_media_mapping (GstRTSPClient *client
,GstRTSPMediaMapping *mapping
);
Set mapping
as the media mapping for client
which it will use to map urls
to media streams. These mapping is usually inherited from the server that
created the client but can be overriden later.
|
a GstRTSPClient |
|
a GstRTSPMediaMapping |
GstRTSPMediaMapping * gst_rtsp_client_get_media_mapping (GstRTSPClient *client
);
Get the GstRTSPMediaMapping object that client
uses to manage its sessions.
|
a GstRTSPClient |
Returns : |
a GstRTSPMediaMapping, unref after usage. |
void gst_rtsp_client_set_auth (GstRTSPClient *client
,GstRTSPAuth *auth
);
configure auth
to be used as the authentication manager of client
.
|
a GstRTSPClient |
|
a GstRTSPAuth |
GstRTSPAuth * gst_rtsp_client_get_auth (GstRTSPClient *client
);
Get the GstRTSPAuth used as the authentication manager of client
.
|
a GstRTSPClient |
Returns : |
the GstRTSPAuth of client . g_object_unref() after
usage. |
gboolean gst_rtsp_client_accept (GstRTSPClient *client
,GIOChannel *channel
);
"media-mapping"
property"media-mapping" GstRTSPMediaMapping* : Read / Write
The media mapping to use for client session.
"session-pool"
property"session-pool" GstRTSPSessionPool* : Read / Write
The session pool to use for client session.
"closed"
signalvoid user_function (GstRTSPClient *gstrtspclient,
gpointer user_data) : Run Last