| GStreamer RTSP Server Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
struct GstRTSPContext; GstRTSPContext * gst_rtsp_context_get_current (void); void gst_rtsp_context_push_current (GstRTSPContext *ctx); void gst_rtsp_context_pop_current (GstRTSPContext *ctx);
struct GstRTSPContext {
GstRTSPServer *server;
GstRTSPConnection *conn;
GstRTSPClient *client;
GstRTSPMessage *request;
GstRTSPUrl *uri;
GstRTSPMethod method;
GstRTSPAuth *auth;
GstRTSPToken *token;
GstRTSPSession *session;
GstRTSPSessionMedia *sessmedia;
GstRTSPMediaFactory *factory;
GstRTSPMedia *media;
GstRTSPStream *stream;
GstRTSPMessage *response;
};
Information passed around containing the context of a request.
GstRTSPServer * |
the server |
| the connection | |
GstRTSPClient * |
the client |
| the complete request | |
the complete url parsed from request
|
|
the parsed method of uri
|
|
GstRTSPAuth * |
the current auth object or NULL
|
GstRTSPToken * |
authorisation token |
GstRTSPSession * |
the session, can be NULL
|
GstRTSPSessionMedia * |
the session media for the url can be NULL
|
GstRTSPMediaFactory * |
the media factory for the url, can be NULL
|
GstRTSPMedia * |
the media for the url can be NULL
|
GstRTSPStream * |
the stream for the url can be NULL
|
| the response |
GstRTSPContext * gst_rtsp_context_get_current (void);
Get the current GstRTSPContext. This object is retrieved from the current thread that is handling the request for a client.
Returns : |
a GstRTSPContext |
void gst_rtsp_context_push_current (GstRTSPContext *ctx);
Pushes ctx onto the context stack. The current
context can then be received using gst_rtsp_context_get_current().
|
a #GstRTSPContext |
void gst_rtsp_context_pop_current (GstRTSPContext *ctx);
Pops ctx off the context stack (verifying that ctx
is on the top of the stack).
|
a GstRTSPContext |