| GStreamer RTSP Server Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
GstRTSPMediaMapping; GstRTSPMediaMappingClass; GstRTSPMediaMapping * gst_rtsp_media_mapping_new (void); GstRTSPMediaFactory * gst_rtsp_media_mapping_find_factory (GstRTSPMediaMapping *mapping,const GstRTSPUrl *url); void gst_rtsp_media_mapping_add_factory (GstRTSPMediaMapping *mapping,const gchar *path,GstRTSPMediaFactory *factory); void gst_rtsp_media_mapping_remove_factory (GstRTSPMediaMapping *mapping,const gchar *path);
typedef struct _GstRTSPMediaMapping GstRTSPMediaMapping;
Creates a GstRTSPMediaFactory object for a given url.
typedef struct {
GObjectClass parent_class;
GstRTSPMediaFactory * (*find_media) (GstRTSPMediaMapping *mapping, const GstRTSPUrl *url);
} GstRTSPMediaMappingClass;
The class for the media mapping object.
GObjectClass |
|
Create or return a previously cached GstRTSPMediaFactory object
for the given url. the default implementation will use the mappings
added with gst_rtsp_media_mapping_add_factory().
|
GstRTSPMediaFactory * gst_rtsp_media_mapping_find_factory (GstRTSPMediaMapping *mapping,const GstRTSPUrl *url);
Find the GstRTSPMediaFactory for url. The default implementation of this object
will use the mappings added with gst_rtsp_media_mapping_add_factory().
|
a GstRTSPMediaMapping |
|
a url |
Returns : |
the GstRTSPMediaFactory for url. g_object_unref() after usage.
|
void gst_rtsp_media_mapping_add_factory (GstRTSPMediaMapping *mapping,const gchar *path,GstRTSPMediaFactory *factory);
Attach factory to the mount point path in mapping.
path is of the form (/node)+. Any previous mapping will be freed.
Ownership is taken of the reference on factory so that factory should not be
used after calling this function.
|
a GstRTSPMediaMapping |
|
a mount point |
|
a GstRTSPMediaFactory |
void gst_rtsp_media_mapping_remove_factory (GstRTSPMediaMapping *mapping,const gchar *path);
Remove the GstRTSPMediaFactory associated with path in mapping.
|
a GstRTSPMediaMapping |
|
a mount point |