diff --git a/webroot/js/components/player.js b/webroot/js/components/player.js index 4d651d7e2..8e6191131 100644 --- a/webroot/js/components/player.js +++ b/webroot/js/components/player.js @@ -80,7 +80,9 @@ class OwncastPlayer { startPlayer() { this.log('Start playing'); const source = { ...VIDEO_SRC }; - this.vjsPlayer.volume(localStorage.getItem('owncastVolume')); + + if (localStorage.getItem('owncastVolume') !== null) + this.vjsPlayer.volume(localStorage.getItem('owncastVolume')); this.vjsPlayer.src(source); // this.vjsPlayer.play(); }