844d2661 by Gary Katsevman

Add discontinuity to the m3u8 parser

1 parent 5a036701
......@@ -273,6 +273,14 @@
});
return;
}
match = (/^#EXT-X-DISCONTINUITY/).exec(line);
if (match) {
this.trigger('data', {
type: 'tag',
tagType: 'discontinuity'
});
return;
}
// unknown tag type
this.trigger('data', {
......@@ -399,6 +407,9 @@
currentUri.attributes = mergeOptions(currentUri.attributes,
entry.attributes);
},
'discontinuity': function() {
currentUri.discontinuity = true;
},
'targetduration': function() {
if (!isFinite(entry.duration) || entry.duration < 0) {
this.trigger('warn', {
......