Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

ADD: Handle muted state to update the volume settings

Edgardo Ramírezbe1722521938
diff --git a/webroot/js/components/player.js b/webroot/js/components/player.js
index a7255f68ed..aba0bfd6ff 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() {