GstRTSPMediaMapping

GstRTSPMediaMapping

Synopsis

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

Object Hierarchy

  GObject
   +----GstRTSPMediaMapping

Description

Details

GstRTSPMediaMapping

typedef struct _GstRTSPMediaMapping GstRTSPMediaMapping;

Creates a GstRTSPMediaFactory object for a given url.


GstRTSPMediaMappingClass

typedef struct {
  GObjectClass  parent_class;

  GstRTSPMediaFactory * (*find_media)  (GstRTSPMediaMapping *mapping, const GstRTSPUrl *url);
} GstRTSPMediaMappingClass;

The class for the media mapping object.

GObjectClass parent_class;

find_media ()

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().

gst_rtsp_media_mapping_new ()

GstRTSPMediaMapping * gst_rtsp_media_mapping_new        (void);

gst_rtsp_media_mapping_find_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().

mapping :

a GstRTSPMediaMapping

url :

a url

Returns :

the GstRTSPMediaFactory for url. g_object_unref() after usage.

gst_rtsp_media_mapping_add_factory ()

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.

mapping :

a GstRTSPMediaMapping

path :

a mount point

factory :

a GstRTSPMediaFactory

gst_rtsp_media_mapping_remove_factory ()

void                gst_rtsp_media_mapping_remove_factory
                                                        (GstRTSPMediaMapping *mapping,
                                                         const gchar *path);

Remove the GstRTSPMediaFactory associated with path in mapping.

mapping :

a GstRTSPMediaMapping

path :

a mount point