Skip to content

Commit

Permalink
fix(player): Changed default setting for speed to current media one t…
Browse files Browse the repository at this point in the history
…o allow user to use a different one
  • Loading branch information
rafa8626 committed Jun 4, 2019
1 parent 30ff938 commit 34bb41a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/openplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5867,7 +5867,7 @@ var Settings = function () {
value: function addSettings() {
return {
className: 'op-speed__option',
default: '1',
default: this.player.getMedia().playbackRate.toString(),
key: 'speed',
name: this.labels.speed,
subitems: [{
Expand Down
2 changes: 1 addition & 1 deletion dist/openplayer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/controls/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class Settings implements PlayerComponent {
public addSettings(): SettingsItem {
return {
className: 'op-speed__option',
default: '1',
default: this.player.getMedia().playbackRate.toString(),
key: 'speed',
name: this.labels.speed,
subitems: [
Expand Down

0 comments on commit 34bb41a

Please sign in to comment.