ad192c01 by Gary Katsevman

Reset sourceBuffers when we are entering a segment that is after a discontinuity

1 parent 844d2661
......@@ -387,6 +387,10 @@ var
return;
}
if (segment.discontinuity) {
player.hls.sourceBuffer.abort();
}
// calculate the download bandwidth
player.hls.segmentXhrTime = (+new Date()) - startTime;
player.hls.bandwidth = (this.response.byteLength / player.hls.segmentXhrTime) * 8 * 1000;
......