1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-08 12:05:47 +02:00

feat(player): remove text tracks on Player#reset (#5327)

Closes #5140
This commit is contained in:
gstrat88 2018-07-24 23:08:44 +03:00 committed by Gary Katsevman
parent d773cd4feb
commit fd4c6e12d6

View File

@ -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');
}