| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifndef __GST_HLS_DEMUX_PRELOADER_H__ |
| 22 |
#define __GST_HLS_DEMUX_PRELOADER_H__ |
| 23 |
|
| 24 |
#include <glib.h> |
| 25 |
|
| 26 |
#include "m3u8.h" |
| 27 |
|
| 28 |
#include "downloadrequest.h" |
| 29 |
#include "downloadhelper.h" |
| 30 |
|
| 31 |
G_BEGIN_DECLS |
| 32 |
|
| 33 |
typedef struct _GstHLSDemuxPreloader GstHLSDemuxPreloader; |
| 34 |
|
| 35 |
struct _GstHLSDemuxPreloader { |
| 36 |
DownloadHelper *download_helper; |
| 37 |
GPtrArray *active_preloads; |
| 38 |
}; |
| 39 |
|
| 40 |
GstHLSDemuxPreloader *gst_hls_demux_preloader_new (DownloadHelper *download_helper); |
| 41 |
void gst_hls_demux_preloader_free (GstHLSDemuxPreloader *preloader); |
| 42 |
void gst_hls_demux_preloader_load (GstHLSDemuxPreloader *preloader, GstM3U8PreloadHint *hint, const gchar *referrer_uri); |
| 43 |
void gst_hls_demux_preloader_cancel (GstHLSDemuxPreloader *preloader, GstM3U8PreloadHintType hint_types); |
| 44 |
|
| 45 |
gboolean gst_hls_demux_preloader_provide_request (GstHLSDemuxPreloader *preloader, DownloadRequest *target_req); |
| 46 |
|
| 47 |
G_END_DECLS |
| 48 |
#endif |