2012-11-08 19:06:44 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2012 Smart TV Alliance
|
|
|
|
* Author: Thiago Sousa Santos <thiago.sousa.santos@collabora.com>, Collabora Ltd.
|
|
|
|
*
|
|
|
|
* gstmssmanifest.h:
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_MSS_MANIFEST_H__
|
|
|
|
#define __GST_MSS_MANIFEST_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <gio/gio.h>
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _GstMssManifest GstMssManifest;
|
2012-11-19 20:53:16 +00:00
|
|
|
typedef struct _GstMssStream GstMssStream;
|
2012-11-08 19:06:44 +00:00
|
|
|
|
2012-11-19 20:53:16 +00:00
|
|
|
typedef enum _GstMssStreamType {
|
2012-11-09 19:47:54 +00:00
|
|
|
MSS_STREAM_TYPE_UNKNOWN = 0,
|
|
|
|
MSS_STREAM_TYPE_VIDEO = 1,
|
|
|
|
MSS_STREAM_TYPE_AUDIO = 2
|
2012-11-19 20:53:16 +00:00
|
|
|
} GstMssStreamType;
|
2012-11-09 19:47:54 +00:00
|
|
|
|
2013-04-16 22:35:03 +00:00
|
|
|
GstMssManifest * gst_mss_manifest_new (GstBuffer * data);
|
2012-11-08 19:06:44 +00:00
|
|
|
void gst_mss_manifest_free (GstMssManifest * manifest);
|
2012-11-09 19:47:54 +00:00
|
|
|
GSList * gst_mss_manifest_get_streams (GstMssManifest * manifest);
|
2012-12-26 19:19:14 +00:00
|
|
|
guint64 gst_mss_manifest_get_timescale (GstMssManifest * manifest);
|
|
|
|
guint64 gst_mss_manifest_get_duration (GstMssManifest * manifest);
|
2012-12-28 03:48:33 +00:00
|
|
|
GstClockTime gst_mss_manifest_get_gst_duration (GstMssManifest * manifest);
|
2014-11-07 22:30:18 +00:00
|
|
|
void gst_mss_manifest_seek (GstMssManifest * manifest, guint64 time);
|
2013-01-08 21:01:17 +00:00
|
|
|
gboolean gst_mss_manifest_change_bitrate (GstMssManifest *manifest, guint64 bitrate);
|
|
|
|
guint64 gst_mss_manifest_get_current_bitrate (GstMssManifest * manifest);
|
2013-01-17 19:20:10 +00:00
|
|
|
gboolean gst_mss_manifest_is_live (GstMssManifest * manifest);
|
2014-12-04 04:46:43 +00:00
|
|
|
gint64 gst_mss_manifest_get_dvr_window_length (GstMssManifest * manifest);
|
|
|
|
gint gst_mss_manifest_get_look_ahead_fragments_count (GstMssManifest * manifest);
|
2013-01-17 19:20:10 +00:00
|
|
|
void gst_mss_manifest_reload_fragments (GstMssManifest * manifest, GstBuffer * data);
|
2014-12-04 04:46:43 +00:00
|
|
|
GstClockTime gst_mss_manifest_get_min_fragment_duration (GstMssManifest * manifest);
|
2015-06-08 13:33:22 +00:00
|
|
|
const gchar * gst_mss_manifest_get_protection_system_id (GstMssManifest * manifest);
|
|
|
|
const gchar * gst_mss_manifest_get_protection_data (GstMssManifest * manifest);
|
2012-11-09 19:47:54 +00:00
|
|
|
|
2012-11-19 20:53:16 +00:00
|
|
|
GstMssStreamType gst_mss_stream_get_type (GstMssStream *stream);
|
|
|
|
GstCaps * gst_mss_stream_get_caps (GstMssStream * stream);
|
2013-02-06 11:48:55 +00:00
|
|
|
gboolean gst_mss_stream_select_bitrate (GstMssStream * stream, guint64 bitrate);
|
|
|
|
guint64 gst_mss_stream_get_current_bitrate (GstMssStream * stream);
|
2013-01-08 20:55:49 +00:00
|
|
|
void gst_mss_stream_set_active (GstMssStream * stream, gboolean active);
|
2012-12-20 18:30:06 +00:00
|
|
|
guint64 gst_mss_stream_get_timescale (GstMssStream * stream);
|
2012-11-19 20:53:16 +00:00
|
|
|
GstFlowReturn gst_mss_stream_get_fragment_url (GstMssStream * stream, gchar ** url);
|
2013-01-04 18:49:02 +00:00
|
|
|
GstClockTime gst_mss_stream_get_fragment_gst_timestamp (GstMssStream * stream);
|
|
|
|
GstClockTime gst_mss_stream_get_fragment_gst_duration (GstMssStream * stream);
|
2014-12-04 04:46:43 +00:00
|
|
|
gboolean gst_mss_stream_has_next_fragment (GstMssStream * stream);
|
2012-11-19 20:53:16 +00:00
|
|
|
GstFlowReturn gst_mss_stream_advance_fragment (GstMssStream * stream);
|
2014-11-22 04:01:50 +00:00
|
|
|
GstFlowReturn gst_mss_stream_regress_fragment (GstMssStream * stream);
|
2014-11-07 22:30:18 +00:00
|
|
|
void gst_mss_stream_seek (GstMssStream * stream, guint64 time);
|
2013-11-14 14:14:18 +00:00
|
|
|
const gchar * gst_mss_stream_get_lang (GstMssStream * stream);
|
2012-11-09 19:47:54 +00:00
|
|
|
|
2012-11-19 20:53:16 +00:00
|
|
|
const gchar * gst_mss_stream_type_name (GstMssStreamType streamtype);
|
2012-11-08 19:06:44 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GST_MSS_MANIFEST_H__ */
|