2009-01-20 18:44:45 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2008 Wim Taymans <wim.taymans at gmail.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-04 00:14:25 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2009-01-20 18:44:45 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <gst/rtsp/gstrtspurl.h>
|
|
|
|
|
|
|
|
#include "rtsp-media.h"
|
2013-07-09 12:33:43 +00:00
|
|
|
#include "rtsp-permissions.h"
|
2012-11-14 16:23:59 +00:00
|
|
|
#include "rtsp-address-pool.h"
|
2009-01-20 18:44:45 +00:00
|
|
|
|
|
|
|
#ifndef __GST_RTSP_MEDIA_FACTORY_H__
|
|
|
|
#define __GST_RTSP_MEDIA_FACTORY_H__
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2009-01-22 14:33:29 +00:00
|
|
|
/* types for the media factory */
|
|
|
|
#define GST_TYPE_RTSP_MEDIA_FACTORY (gst_rtsp_media_factory_get_type ())
|
2009-01-20 18:44:45 +00:00
|
|
|
#define GST_IS_RTSP_MEDIA_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_RTSP_MEDIA_FACTORY))
|
|
|
|
#define GST_IS_RTSP_MEDIA_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_RTSP_MEDIA_FACTORY))
|
|
|
|
#define GST_RTSP_MEDIA_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RTSP_MEDIA_FACTORY, GstRTSPMediaFactoryClass))
|
|
|
|
#define GST_RTSP_MEDIA_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_RTSP_MEDIA_FACTORY, GstRTSPMediaFactory))
|
|
|
|
#define GST_RTSP_MEDIA_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_RTSP_MEDIA_FACTORY, GstRTSPMediaFactoryClass))
|
|
|
|
#define GST_RTSP_MEDIA_FACTORY_CAST(obj) ((GstRTSPMediaFactory*)(obj))
|
|
|
|
#define GST_RTSP_MEDIA_FACTORY_CLASS_CAST(klass) ((GstRTSPMediaFactoryClass*)(klass))
|
|
|
|
|
|
|
|
typedef struct _GstRTSPMediaFactory GstRTSPMediaFactory;
|
|
|
|
typedef struct _GstRTSPMediaFactoryClass GstRTSPMediaFactoryClass;
|
2012-11-29 10:11:05 +00:00
|
|
|
typedef struct _GstRTSPMediaFactoryPrivate GstRTSPMediaFactoryPrivate;
|
2010-12-11 12:41:24 +00:00
|
|
|
|
2009-01-20 18:44:45 +00:00
|
|
|
/**
|
|
|
|
* GstRTSPMediaFactory:
|
|
|
|
*
|
2009-01-22 14:33:29 +00:00
|
|
|
* The definition and logic for constructing the pipeline for a media. The media
|
|
|
|
* can contain multiple streams like audio and video.
|
2009-01-20 18:44:45 +00:00
|
|
|
*/
|
|
|
|
struct _GstRTSPMediaFactory {
|
2012-05-11 07:42:47 +00:00
|
|
|
GObject parent;
|
2011-08-16 13:15:19 +00:00
|
|
|
|
2013-07-11 10:18:26 +00:00
|
|
|
/*< private >*/
|
2012-11-29 10:11:05 +00:00
|
|
|
GstRTSPMediaFactoryPrivate *priv;
|
2013-12-12 00:36:07 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2009-01-20 18:44:45 +00:00
|
|
|
};
|
|
|
|
|
2009-01-22 14:33:29 +00:00
|
|
|
/**
|
|
|
|
* GstRTSPMediaFactoryClass:
|
2009-01-30 13:53:28 +00:00
|
|
|
* @gen_key: convert @url to a key for caching shared #GstRTSPMedia objects.
|
|
|
|
* The default implementation of this function will use the complete URL
|
|
|
|
* including the query parameters to return a key.
|
2012-10-25 19:29:58 +00:00
|
|
|
* @create_element: Construct and return a #GstElement that is a #GstBin containing
|
2009-01-30 13:53:28 +00:00
|
|
|
* the elements to use for streaming the media. The bin should contain
|
2013-11-22 00:30:53 +00:00
|
|
|
* payloaders pay\%d for each stream. The default implementation of this
|
2009-01-30 13:53:28 +00:00
|
|
|
* function returns the bin created from the launch parameter.
|
2009-01-22 14:33:29 +00:00
|
|
|
* @construct: the vmethod that will be called when the factory has to create the
|
2009-01-22 16:58:19 +00:00
|
|
|
* #GstRTSPMedia for @url. The default implementation of this
|
2012-10-25 19:29:58 +00:00
|
|
|
* function calls create_element to retrieve an element and then looks for
|
2013-11-22 00:30:53 +00:00
|
|
|
* pay\%d to create the streams.
|
2009-06-12 15:45:29 +00:00
|
|
|
* @create_pipeline: create a new pipeline or re-use an existing one and
|
|
|
|
* add the #GstRTSPMedia's element created by @construct to the pipeline.
|
2013-07-11 14:57:14 +00:00
|
|
|
* @configure: configure the media created with @construct. The default
|
|
|
|
* implementation will configure the 'shared' property of the media.
|
2016-06-07 19:44:42 +00:00
|
|
|
* @media_constructed: signal emitted when a media was constructed
|
|
|
|
* @media_configure: signal emitted when a media should be configured
|
2009-01-29 12:31:27 +00:00
|
|
|
*
|
2009-01-30 13:53:28 +00:00
|
|
|
* The #GstRTSPMediaFactory class structure.
|
2009-01-22 14:33:29 +00:00
|
|
|
*/
|
2009-01-20 18:44:45 +00:00
|
|
|
struct _GstRTSPMediaFactoryClass {
|
|
|
|
GObjectClass parent_class;
|
|
|
|
|
2011-08-16 11:37:50 +00:00
|
|
|
gchar * (*gen_key) (GstRTSPMediaFactory *factory, const GstRTSPUrl *url);
|
2009-01-29 16:20:27 +00:00
|
|
|
|
2012-10-25 19:29:58 +00:00
|
|
|
GstElement * (*create_element) (GstRTSPMediaFactory *factory, const GstRTSPUrl *url);
|
2011-08-16 11:37:50 +00:00
|
|
|
GstRTSPMedia * (*construct) (GstRTSPMediaFactory *factory, const GstRTSPUrl *url);
|
|
|
|
GstElement * (*create_pipeline) (GstRTSPMediaFactory *factory, GstRTSPMedia *media);
|
2013-07-11 14:57:14 +00:00
|
|
|
void (*configure) (GstRTSPMediaFactory *factory, GstRTSPMedia *media);
|
2011-06-30 08:13:59 +00:00
|
|
|
|
|
|
|
/* signals */
|
2011-08-16 11:37:50 +00:00
|
|
|
void (*media_constructed) (GstRTSPMediaFactory *factory, GstRTSPMedia *media);
|
2011-08-16 13:03:06 +00:00
|
|
|
void (*media_configure) (GstRTSPMediaFactory *factory, GstRTSPMedia *media);
|
2013-12-12 00:36:07 +00:00
|
|
|
|
|
|
|
/*< private >*/
|
|
|
|
gpointer _gst_reserved[GST_PADDING_LARGE];
|
2009-01-20 18:44:45 +00:00
|
|
|
};
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2009-01-20 18:44:45 +00:00
|
|
|
GType gst_rtsp_media_factory_get_type (void);
|
|
|
|
|
2009-01-29 16:20:27 +00:00
|
|
|
/* creating the factory */
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2009-01-20 18:44:45 +00:00
|
|
|
GstRTSPMediaFactory * gst_rtsp_media_factory_new (void);
|
|
|
|
|
2009-01-29 16:20:27 +00:00
|
|
|
/* configuring the factory */
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
void gst_rtsp_media_factory_set_launch (GstRTSPMediaFactory *factory,
|
|
|
|
const gchar *launch);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
gchar * gst_rtsp_media_factory_get_launch (GstRTSPMediaFactory *factory);
|
2009-01-22 16:58:19 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-11 14:57:14 +00:00
|
|
|
void gst_rtsp_media_factory_set_permissions (GstRTSPMediaFactory *factory,
|
|
|
|
GstRTSPPermissions *permissions);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-11 14:57:14 +00:00
|
|
|
GstRTSPPermissions * gst_rtsp_media_factory_get_permissions (GstRTSPMediaFactory *factory);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-12 14:17:57 +00:00
|
|
|
void gst_rtsp_media_factory_add_role (GstRTSPMediaFactory *factory,
|
|
|
|
const gchar *role,
|
|
|
|
const gchar *fieldname, ...);
|
2013-07-11 14:57:14 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2018-03-02 00:36:23 +00:00
|
|
|
void gst_rtsp_media_factory_add_role_from_structure (GstRTSPMediaFactory * factory,
|
|
|
|
GstStructure *structure);
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
void gst_rtsp_media_factory_set_shared (GstRTSPMediaFactory *factory,
|
|
|
|
gboolean shared);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
gboolean gst_rtsp_media_factory_is_shared (GstRTSPMediaFactory *factory);
|
2010-08-20 16:17:08 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-12-09 16:24:24 +00:00
|
|
|
void gst_rtsp_media_factory_set_stop_on_disconnect (GstRTSPMediaFactory *factory,
|
|
|
|
gboolean stop_on_disconnect);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-12-09 16:24:24 +00:00
|
|
|
gboolean gst_rtsp_media_factory_is_stop_on_disonnect (GstRTSPMediaFactory *factory);
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-11-28 13:10:19 +00:00
|
|
|
void gst_rtsp_media_factory_set_suspend_mode (GstRTSPMediaFactory *factory,
|
|
|
|
GstRTSPSuspendMode mode);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-11-28 13:10:19 +00:00
|
|
|
GstRTSPSuspendMode gst_rtsp_media_factory_get_suspend_mode (GstRTSPMediaFactory *factory);
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
void gst_rtsp_media_factory_set_eos_shutdown (GstRTSPMediaFactory *factory,
|
|
|
|
gboolean eos_shutdown);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
gboolean gst_rtsp_media_factory_is_eos_shutdown (GstRTSPMediaFactory *factory);
|
2011-08-16 13:15:19 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2014-03-03 15:55:48 +00:00
|
|
|
void gst_rtsp_media_factory_set_profiles (GstRTSPMediaFactory *factory,
|
|
|
|
GstRTSPProfile profiles);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2014-03-03 15:55:48 +00:00
|
|
|
GstRTSPProfile gst_rtsp_media_factory_get_profiles (GstRTSPMediaFactory *factory);
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
void gst_rtsp_media_factory_set_protocols (GstRTSPMediaFactory *factory,
|
|
|
|
GstRTSPLowerTrans protocols);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
GstRTSPLowerTrans gst_rtsp_media_factory_get_protocols (GstRTSPMediaFactory *factory);
|
2012-11-14 16:23:59 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
void gst_rtsp_media_factory_set_address_pool (GstRTSPMediaFactory * factory,
|
|
|
|
GstRTSPAddressPool * pool);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
GstRTSPAddressPool * gst_rtsp_media_factory_get_address_pool (GstRTSPMediaFactory * factory);
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2016-03-02 17:42:13 +00:00
|
|
|
void gst_rtsp_media_factory_set_multicast_iface (GstRTSPMediaFactory *factory, const gchar *multicast_iface);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2016-03-02 17:42:13 +00:00
|
|
|
gchar * gst_rtsp_media_factory_get_multicast_iface (GstRTSPMediaFactory *factory);
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
void gst_rtsp_media_factory_set_buffer_size (GstRTSPMediaFactory * factory,
|
|
|
|
guint size);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
guint gst_rtsp_media_factory_get_buffer_size (GstRTSPMediaFactory * factory);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2023-06-26 06:25:36 +00:00
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
void gst_rtsp_media_factory_set_ensure_keyunit_on_start (GstRTSPMediaFactory * factory,
|
|
|
|
gboolean ensure_keyunit_on_start);
|
|
|
|
|
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
gboolean gst_rtsp_media_factory_get_ensure_keyunit_on_start (GstRTSPMediaFactory * factory);
|
|
|
|
|
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
void gst_rtsp_media_factory_set_ensure_keyunit_on_start_timeout (GstRTSPMediaFactory * factory,
|
|
|
|
guint timeout);
|
|
|
|
|
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
guint gst_rtsp_media_factory_get_ensure_keyunit_on_start_timeout (GstRTSPMediaFactory * factory);
|
|
|
|
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2014-11-26 14:12:36 +00:00
|
|
|
void gst_rtsp_media_factory_set_retransmission_time (GstRTSPMediaFactory * factory,
|
|
|
|
GstClockTime time);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2014-11-26 14:12:36 +00:00
|
|
|
GstClockTime gst_rtsp_media_factory_get_retransmission_time (GstRTSPMediaFactory * factory);
|
2011-01-31 16:37:02 +00:00
|
|
|
|
2018-03-29 20:49:26 +00:00
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
void gst_rtsp_media_factory_set_do_retransmission (GstRTSPMediaFactory * factory,
|
|
|
|
gboolean do_retransmission);
|
|
|
|
|
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
gboolean gst_rtsp_media_factory_get_do_retransmission (GstRTSPMediaFactory * factory);
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-01-19 12:20:39 +00:00
|
|
|
void gst_rtsp_media_factory_set_latency (GstRTSPMediaFactory * factory,
|
|
|
|
guint latency);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-01-19 12:20:39 +00:00
|
|
|
guint gst_rtsp_media_factory_get_latency (GstRTSPMediaFactory * factory);
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-01-28 17:54:01 +00:00
|
|
|
void gst_rtsp_media_factory_set_transport_mode (GstRTSPMediaFactory *factory,
|
|
|
|
GstRTSPTransportMode mode);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-01-28 17:54:01 +00:00
|
|
|
GstRTSPTransportMode gst_rtsp_media_factory_get_transport_mode (GstRTSPMediaFactory *factory);
|
2015-01-09 11:40:47 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-03-02 14:49:42 +00:00
|
|
|
void gst_rtsp_media_factory_set_media_gtype (GstRTSPMediaFactory * factory,
|
|
|
|
GType media_gtype);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-03-02 14:49:42 +00:00
|
|
|
GType gst_rtsp_media_factory_get_media_gtype (GstRTSPMediaFactory * factory);
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-12-30 14:31:13 +00:00
|
|
|
void gst_rtsp_media_factory_set_clock (GstRTSPMediaFactory *factory,
|
|
|
|
GstClock * clock);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-12-30 14:31:13 +00:00
|
|
|
GstClock * gst_rtsp_media_factory_get_clock (GstRTSPMediaFactory *factory);
|
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-12-30 16:39:05 +00:00
|
|
|
void gst_rtsp_media_factory_set_publish_clock_mode (GstRTSPMediaFactory * factory, GstRTSPPublishClockMode mode);
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2015-12-30 16:39:05 +00:00
|
|
|
GstRTSPPublishClockMode gst_rtsp_media_factory_get_publish_clock_mode (GstRTSPMediaFactory * factory);
|
|
|
|
|
2018-07-24 07:35:46 +00:00
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
gboolean gst_rtsp_media_factory_set_max_mcast_ttl (GstRTSPMediaFactory * factory,
|
|
|
|
guint ttl);
|
|
|
|
|
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
guint gst_rtsp_media_factory_get_max_mcast_ttl (GstRTSPMediaFactory * factory);
|
|
|
|
|
2018-09-06 14:17:33 +00:00
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
void gst_rtsp_media_factory_set_bind_mcast_address (GstRTSPMediaFactory * factory,
|
|
|
|
gboolean bind_mcast_addr);
|
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
gboolean gst_rtsp_media_factory_is_bind_mcast_address (GstRTSPMediaFactory * factory);
|
|
|
|
|
2015-03-03 13:42:07 +00:00
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
void gst_rtsp_media_factory_set_dscp_qos (GstRTSPMediaFactory * factory,
|
|
|
|
gint dscp_qos);
|
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
gint gst_rtsp_media_factory_get_dscp_qos (GstRTSPMediaFactory * factory);
|
|
|
|
|
2020-09-04 19:14:35 +00:00
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
void gst_rtsp_media_factory_set_enable_rtcp (GstRTSPMediaFactory * factory,
|
|
|
|
gboolean enable);
|
|
|
|
|
|
|
|
GST_RTSP_SERVER_API
|
|
|
|
gboolean gst_rtsp_media_factory_is_enable_rtcp (GstRTSPMediaFactory * factory);
|
|
|
|
|
2009-01-29 16:20:27 +00:00
|
|
|
/* creating the media from the factory and a url */
|
2017-05-18 09:35:18 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
GstRTSPMedia * gst_rtsp_media_factory_construct (GstRTSPMediaFactory *factory,
|
|
|
|
const GstRTSPUrl *url);
|
2012-10-25 19:29:58 +00:00
|
|
|
|
2018-03-13 13:30:41 +00:00
|
|
|
GST_RTSP_SERVER_API
|
2013-07-09 12:33:43 +00:00
|
|
|
GstElement * gst_rtsp_media_factory_create_element (GstRTSPMediaFactory *factory,
|
|
|
|
const GstRTSPUrl *url);
|
2009-06-12 15:51:44 +00:00
|
|
|
|
2015-11-10 19:17:18 +00:00
|
|
|
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPMediaFactory, gst_object_unref)
|
|
|
|
#endif
|
|
|
|
|
2009-01-20 18:44:45 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_RTSP_MEDIA_FACTORY_H__ */
|