| GStreamer RTSP Server Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define GST_RTSP_MEDIA_FACTORY_GET_LOCK (f) #define GST_RTSP_MEDIA_FACTORY_LOCK (f) #define GST_RTSP_MEDIA_FACTORY_UNLOCK (f) struct GstRTSPMediaFactoryURI; struct 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);
#define GST_RTSP_MEDIA_FACTORY_GET_LOCK(f) (GST_RTSP_MEDIA_FACTORY_CAST(f)->lock)
#define GST_RTSP_MEDIA_FACTORY_LOCK(f) (g_mutex_lock(GST_RTSP_MEDIA_FACTORY_GET_LOCK(f)))
#define GST_RTSP_MEDIA_FACTORY_UNLOCK(f) (g_mutex_unlock(GST_RTSP_MEDIA_FACTORY_GET_LOCK(f)))
struct GstRTSPMediaFactoryURI {
GstRTSPMediaFactory parent;
gchar *uri;
gboolean use_gstpay;
GstCaps *raw_vcaps;
GstCaps *raw_acaps;
GList *demuxers;
GList *payloaders;
GList *decoders;
};
A media factory that creates a pipeline to play and uri.
struct GstRTSPMediaFactoryURIClass {
GstRTSPMediaFactoryClass parent_class;
};
The GstRTSPMediaFactoryURI class structure.
GstRTSPMediaFactoryURI * gst_rtsp_media_factory_uri_new (void);
Create a new GstRTSPMediaFactoryURI instance.
Returns : |
a new GstRTSPMediaFactoryURI object. |
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.
|
a GstRTSPMediaFactory |
|
the uri the stream |
gchar * gst_rtsp_media_factory_uri_get_uri (GstRTSPMediaFactoryURI *factory);
Get the URI that will provide media for this factory.
|
a GstRTSPMediaFactory |
Returns : |
the configured URI. g_free() after usage. |