Skip to content

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

UPDATE: Set volume on load

Edgardo Ramírez8e38d6b31e77
diff --git a/webroot/js/components/player.js b/webroot/js/components/player.js
index aba0bfd6ff..22c4d2c77c 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();
}