mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
fix: add set_volume handler to player_lite.html for mute toggle
player_lite (Live TV desktop) ignored set_volume messages from Flutter, so mute/unmute button had no effect. Added handler matching player.html. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
b985f11704
commit
cb5eca7547
1 file changed
+1
@@ -350,6 +350,7 @@
|
||||
const data = event.data;
|
||||
if (data.type === 'play') video.play().catch(() => playOverlay.style.display = 'flex');
|
||||
else if (data.type === 'pause') video.pause();
|
||||
else if (data.type === 'set_volume') { video.volume = Math.max(0, Math.min(1, data.value)); video.muted = video.volume === 0; }
|
||||
});
|
||||
|
||||
initPlayer();
|
||||
|
||||
Reference in new issue
Block a user