commit 3f193f1fbe427ab3ae0777b8b2f6ae7fb35d8020
parent a86599b8babcd776be5d30405ae164c4c6c3f18a
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Fri, 9 Aug 2024 10:40:05 +0200
feat: set volume, muting and quality levels explicitely
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/assets/js/twitch.js b/assets/js/twitch.js
@@ -11,7 +11,8 @@ function toggle_player(stream) {
player.src = "https://player.twitch.tv/?channel=" +
stream +
"&parent=" +
- window.location.hostname;
+ window.location.hostname +
+ "&muted=false&volume=1&quality=auto";
player.id = "play-" + stream;
player.classList.add("preview");
img.replaceWith(player);