Skip to content

Commit

Permalink
Reset demuxer when backtracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Walch committed Jul 11, 2020
1 parent 177034f commit 05ce6a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controller/stream-controller.js
Expand Up @@ -1029,6 +1029,10 @@ class StreamController extends BaseStreamController {
this.nextLoadPosition = data.startPTS;
this.state = State.IDLE;
this.fragPrevious = frag;
if (this.demuxer) {
this.demuxer.destroy();
this.demuxer = null;
}
this.tick();
return;
}
Expand Down

0 comments on commit 05ce6a7

Please sign in to comment.