Skip to content

Commit

Permalink
Demo: Reset tracks when media is detached
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Sep 13, 2017
1 parent 0e10c3e commit ec05fe0
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 ec05fe0

Please sign in to comment.