Skip to content

Commit

Permalink
fix(player): Removed reset of playback when destroying settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa8626 committed Jun 5, 2019
1 parent 57ad7cc commit a0acf28
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion dist/openplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5892,7 +5892,6 @@ var Settings = function () {

this.menu.remove();
this.button.remove();
this.player.getMedia().playbackRate = 1;
}
}, {
key: "addSettings",
Expand Down
2 changes: 1 addition & 1 deletion dist/openplayer.min.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions src/js/controls/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ class Settings implements PlayerComponent {

this.menu.remove();
this.button.remove();

// Restore original playback rate
this.player.getMedia().playbackRate = 1;
}

/**
Expand Down

0 comments on commit a0acf28

Please sign in to comment.