GstRTSPMediaFactoryURI

GstRTSPMediaFactoryURI

Synopsis

#define             GST_RTSP_MEDIA_FACTORY_GET_LOCK     (f)
#define             GST_RTSP_MEDIA_FACTORY_LOCK         (f)
#define             GST_RTSP_MEDIA_FACTORY_UNLOCK       (f)
                    GstRTSPMediaFactoryURI;
                    GstRTSPMediaFactoryURIClass;
GstRTSPMediaFactoryURI * gst_rtsp_media_factory_uri_new (void);
void                gst_rtsp_media_factory_uri_set_uri  (GstRTSPMediaFactoryURI *factory,
                                                         const gchar *uri);
gchar *             gst_rtsp_media_factory_uri_get_uri  (GstRTSPMediaFactoryURI *factory);

Description

Details

GST_RTSP_MEDIA_FACTORY_GET_LOCK()

#define GST_RTSP_MEDIA_FACTORY_GET_LOCK(f)       (GST_RTSP_MEDIA_FACTORY_CAST(f)->lock)

GST_RTSP_MEDIA_FACTORY_LOCK()

#define GST_RTSP_MEDIA_FACTORY_LOCK(f)           (g_mutex_lock(GST_RTSP_MEDIA_FACTORY_GET_LOCK(f)))

GST_RTSP_MEDIA_FACTORY_UNLOCK()

#define GST_RTSP_MEDIA_FACTORY_UNLOCK(f)         (g_mutex_unlock(GST_RTSP_MEDIA_FACTORY_GET_LOCK(f)))

GstRTSPMediaFactoryURI

typedef struct {
  GstRTSPMediaFactory   parent;

  gchar *uri;
  gboolean use_gstpay;

  GstCaps *raw_vcaps;
  GstCaps *raw_acaps;
  GList *demuxers;
  GList *payloaders;
  GList *decoders;
} GstRTSPMediaFactoryURI;

A media factory that creates a pipeline to play and uri.

GstRTSPMediaFactory parent;

gchar *uri;

the uri

gboolean use_gstpay;

GstCaps *raw_vcaps;

GstCaps *raw_acaps;

GList *demuxers;

GList *payloaders;

GList *decoders;


GstRTSPMediaFactoryURIClass

typedef struct {
  GstRTSPMediaFactoryClass  parent_class;
} GstRTSPMediaFactoryURIClass;

The GstRTSPMediaFactoryURI class structure.


gst_rtsp_media_factory_uri_new ()

GstRTSPMediaFactoryURI * gst_rtsp_media_factory_uri_new (void);

Create a new GstRTSPMediaFactoryURI instance.

Returns :

a new GstRTSPMediaFactoryURI object.

gst_rtsp_media_factory_uri_set_uri ()

void                gst_rtsp_media_factory_uri_set_uri  (GstRTSPMediaFactoryURI *factory,
                                                         const gchar *uri);

Set the URI of the resource that will be streamed by this factory.

factory :

a GstRTSPMediaFactory

uri :

the uri the stream

gst_rtsp_media_factory_uri_get_uri ()

gchar *             gst_rtsp_media_factory_uri_get_uri  (GstRTSPMediaFactoryURI *factory);

Get the URI that will provide media for this factory.

factory :

a GstRTSPMediaFactory

Returns :

the configured URI. g_free() after usage.