Browse Source

UPDATE: Set volume on load

pull/228/head
Edgardo Ramírez 5 years ago
parent
commit
38743a9608
  1. 3
      webroot/js/components/player.js

3
webroot/js/components/player.js

@ -83,8 +83,7 @@ class OwncastPlayer { @@ -83,8 +83,7 @@ class OwncastPlayer {
this.log('Start playing');
const source = { ...VIDEO_SRC };
if (getLocalStorage(PLAYER_VOLUME) !== null)
this.vjsPlayer.volume(getLocalStorage(PLAYER_VOLUME));
this.vjsPlayer.volume(getLocalStorage(PLAYER_VOLUME) || 1);
this.vjsPlayer.src(source);
// this.vjsPlayer.play();
}

Loading…
Cancel
Save