GstRTSPClient

GstRTSPClient

Synopsis

                    GstRTSPClient;
                    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);

Object Hierarchy

  GObject
   +----GstRTSPClient

Properties

  "media-mapping"            GstRTSPMediaMapping*  : Read / Write
  "session-pool"             GstRTSPSessionPool*   : Read / Write

Signals

  "closed"                                         : Run Last

Description

Details

GstRTSPClient

typedef struct _GstRTSPClient 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.


GstRTSPClientClass

typedef struct {
  GObjectClass  parent_class;

  /* signals */
  void     (*closed)        (GstRTSPClient *client);
} GstRTSPClientClass;

gst_rtsp_client_new ()

GstRTSPClient *     gst_rtsp_client_new                 (void);

Create a new GstRTSPClient instance.

Returns :

a new GstRTSPClient

gst_rtsp_client_set_server ()

void                gst_rtsp_client_set_server          (GstRTSPClient *client,
                                                         GstRTSPServer *server);

Set server as the server that created client.

client :

a GstRTSPClient

server :

a GstRTSPServer

gst_rtsp_client_get_server ()

GstRTSPServer *     gst_rtsp_client_get_server          (GstRTSPClient *client);

Get the GstRTSPServer object that client was created from.

client :

a GstRTSPClient

Returns :

a GstRTSPServer, unref after usage.

gst_rtsp_client_set_session_pool ()

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.

client :

a GstRTSPClient

pool :

a GstRTSPSessionPool

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.

client :

a GstRTSPClient

Returns :

a GstRTSPSessionPool, unref after usage.

gst_rtsp_client_set_media_mapping ()

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.

client :

a GstRTSPClient

mapping :

a GstRTSPMediaMapping

gst_rtsp_client_get_media_mapping ()

GstRTSPMediaMapping * gst_rtsp_client_get_media_mapping (GstRTSPClient *client);

Get the GstRTSPMediaMapping object that client uses to manage its sessions.

client :

a GstRTSPClient

Returns :

a GstRTSPMediaMapping, unref after usage.

gst_rtsp_client_set_auth ()

void                gst_rtsp_client_set_auth            (GstRTSPClient *client,
                                                         GstRTSPAuth *auth);

configure auth to be used as the authentication manager of client.

client :

a GstRTSPClient

auth :

a GstRTSPAuth

gst_rtsp_client_get_auth ()

GstRTSPAuth *       gst_rtsp_client_get_auth            (GstRTSPClient *client);

Get the GstRTSPAuth used as the authentication manager of client.

client :

a GstRTSPClient

Returns :

the GstRTSPAuth of client. g_object_unref() after usage.

gst_rtsp_client_accept ()

gboolean            gst_rtsp_client_accept              (GstRTSPClient *client,
                                                         GIOChannel *channel);

Property Details

The "media-mapping" property

  "media-mapping"            GstRTSPMediaMapping*  : Read / Write

The media mapping to use for client session.


The "session-pool" property

  "session-pool"             GstRTSPSessionPool*   : Read / Write

The session pool to use for client session.

Signal Details

The "closed" signal

void                user_function                      (GstRTSPClient *gstrtspclient,
                                                        gpointer       user_data)          : Run Last