diff options
author | wm4 <wm4@nowhere> | 2017-01-30 19:38:43 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-04 22:34:38 +0100 |
commit | 61202bb3640740d2cb98cf13922dcdf67970d5ef (patch) | |
tree | 2318d52589ada16859f19761924a26aa7bd09812 /demux/timeline.h | |
parent | 97680bf6041a0512c929c927024b38235a35ce55 (diff) | |
download | mpv-61202bb3640740d2cb98cf13922dcdf67970d5ef.tar.bz2 mpv-61202bb3640740d2cb98cf13922dcdf67970d5ef.tar.xz |
ytdl_hook, edl: implement pseudo-DASH support
We use the metadata provided by youtube-dl to sort-of implement
fragmented DASH streaming.
This is all a bit hacky, but hopefully a makeshift solution until
libavformat has proper mechanisms. (Although in danger of being one
of those temporary hacks that become permanent.)
Diffstat (limited to 'demux/timeline.h')
-rw-r--r-- | demux/timeline.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/demux/timeline.h b/demux/timeline.h index edc6a2f7ae..21a6602ba8 100644 --- a/demux/timeline.h +++ b/demux/timeline.h @@ -4,6 +4,7 @@ struct timeline_part { double start; double source_start; + char *url; struct demuxer *source; }; @@ -15,6 +16,9 @@ struct timeline { // main source struct demuxer *demuxer; + bstr init_fragment; + bool dash; + // All referenced files. The source file must be at sources[0]. struct demuxer **sources; int num_sources; |