Skip to content

Commit

Permalink
Merge pull request video-dev#1348 from beaufortfrancois/check-buffer
Browse files Browse the repository at this point in the history
Demo: Reset tracks when media is detached
  • Loading branch information
mangui authored Sep 13, 2017
2 parents 0e10c3e + ec05fe0 commit 0f867ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ <h4> Stats Display </h4>
hls.on(Hls.Events.MEDIA_DETACHED,function() {
$("#HlsStatus").text('MediaSource detached...');
bufferingIdx = -1;
tracks = [];
events.video.push({time : performance.now() - events.t0, type : "Media detached"});
});
hls.on(Hls.Events.FRAG_PARSING_INIT_SEGMENT,function(event,data) {
Expand Down

0 comments on commit 0f867ad

Please sign in to comment.