diff --git a/src/js/player.js b/src/js/player.js index e872644b9d..97a4057078 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -3599,6 +3599,10 @@ class Player extends Component { if (this.tech_) { this.tech_.clearTracks('text'); } + + this.removeClass('vjs-playing'); + this.addClass('vjs-paused'); + this.resetCache_(); this.poster(''); this.loadTech_(this.options_.techOrder[0], null); diff --git a/test/unit/player.test.js b/test/unit/player.test.js index 3b77360594..509d9295d3 100644 --- a/test/unit/player.test.js +++ b/test/unit/player.test.js @@ -1910,6 +1910,8 @@ QUnit.test('player#reset loads the Html5 tech and then techCalls reset', functio options_: { techOrder: ['html5', 'youtube'] }, + addClass() {}, + removeClass() {}, resetCache_() {}, loadTech_(tech, source) { loadedTech = tech; @@ -1942,6 +1944,8 @@ QUnit.test('player#reset loads the first item in the techOrder and then techCall options_: { techOrder: ['youtube', 'html5'] }, + addClass() {}, + removeClass() {}, resetCache_() {}, loadTech_(tech, source) { loadedTech = tech;