Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
trigger hls-reset on tech when segmentloader resetEverything is called
Browse files Browse the repository at this point in the history
added to fix duplicate caption processing problem
  • Loading branch information
mjneil authored and squarebracket committed Aug 18, 2017
1 parent 9a61627 commit 013ff8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/master-playlist-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,10 @@ export class MasterPlaylistController extends videojs.EventTarget {
}, ABORT_EARLY_BLACKLIST_SECONDS);
});

this.mainSegmentLoader_.on('reseteverything', () => {
this.tech_.trigger('hls-reset');
});

this.audioSegmentLoader_.on('ended', () => {
this.onEndOfStream();
});
Expand Down
1 change: 1 addition & 0 deletions src/segment-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ export default class SegmentLoader extends videojs.EventTarget {
this.ended_ = false;
this.resetLoader();
this.remove(0, this.duration_());
this.trigger('reseteverything');
}

/**
Expand Down

0 comments on commit 013ff8b

Please sign in to comment.