Skip to content

Commit

Permalink
feat(player): remove text tracks on Player#reset (#5327)
Browse files Browse the repository at this point in the history
Closes #5140
  • Loading branch information
gstrat88 authored and gkatsev committed Jul 24, 2018
1 parent d773cd4 commit fd4c6e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -2763,6 +2763,9 @@ class Player extends Component {
* and calls `reset` on the tech`.
*/
reset() {
if (this.tech_) {
this.tech_.clearTracks('text');
}
this.loadTech_(this.options_.techOrder[0], null);
this.techCall_('reset');
}
Expand Down

0 comments on commit fd4c6e1

Please sign in to comment.