From f0df543def3af927bb4fb013aa68892a1728f466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgardo=20Ram=C3=ADrez?= Date: Tue, 6 Oct 2020 15:51:30 -0500 Subject: [PATCH] ADD: Handle muted state to update the volume settings --- webroot/js/components/player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webroot/js/components/player.js b/webroot/js/components/player.js index a7255f68e..aba0bfd6f 100644 --- a/webroot/js/components/player.js +++ b/webroot/js/components/player.js @@ -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() {