From 38743a96083b4fb8561d66241bfe6d97eeb93568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgardo=20Ram=C3=ADrez?= Date: Tue, 6 Oct 2020 19:01:59 -0500 Subject: [PATCH] UPDATE: Set volume on load --- webroot/js/components/player.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webroot/js/components/player.js b/webroot/js/components/player.js index aba0bfd6f..22c4d2c77 100644 --- a/webroot/js/components/player.js +++ b/webroot/js/components/player.js @@ -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(); }