Browse Source

ADD: Handle muted state to update the volume settings

pull/228/head
Edgardo Ramírez 5 years ago
parent
commit
f0df543def
  1. 4
      webroot/js/components/player.js

4
webroot/js/components/player.js

@ -102,8 +102,8 @@ class OwncastPlayer { @@ -102,8 +102,8 @@ class OwncastPlayer {
}
}
handleVolume(e) {
setLocalStorage(PLAYER_VOLUME, this.vjsPlayer.volume());
handleVolume() {
setLocalStorage(PLAYER_VOLUME, this.vjsPlayer.muted() ? 0 : this.vjsPlayer.volume());
}
handlePlaying() {

Loading…
Cancel
Save