From 7ba7ae3428f44b4868cbac9f74a11c344ec5eb99 Mon Sep 17 00:00:00 2001 From: gstrat88 Date: Tue, 24 Jul 2018 23:08:44 +0300 Subject: [PATCH] feat(player): remove text tracks on Player#reset (#5327) Closes #5140 --- src/js/player.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/player.js b/src/js/player.js index 63c19a04b8..df7a0c5057 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -2761,6 +2761,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'); }