From 4a518c570819efd36b0084009510f61621f35830 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Tue, 17 Mar 2026 16:20:23 +0300 Subject: [PATCH 1/2] Read from 'zmWatchMuted' cookies instead of 'zmWatchMute' (watch.js) Because we store 'zmWatchMuted' in cookies, not 'zmWatchMute' We can pass 'on' or 'off' to the "controlMute" function, but we store a Boolean value in cookies, so we need to convert it. Also, if there's no cookie, getCookie will return "null," but for us, that doesn't equal "false." --- web/skins/classic/views/js/watch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index bbc32e1c7..503b99dbf 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -835,7 +835,8 @@ function streamStart(monitor = null) { monitorStream.setPlayer($j('#player').val()); monitorStream.setBottomElement(document.getElementById('bottomBlock')); - monitorStream.controlMute(getCookie('zmWatchMute') || 'on'); // default to muted + const cookieMuted = getCookie('zmWatchMuted'); + monitorStream.controlMute((cookieMuted === null || cookieMuted === 'true') ? 'on' : 'off'); // default to muted monitorStream.manageAvailablePlayers(); setChannelStream(); // Start the fps and status updates. give a random delay so that we don't assault the server From f04a9075cc3bc6778e1d4875dfcd9cabc485bbe9 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Thu, 19 Mar 2026 10:39:29 +0300 Subject: [PATCH 2/2] When starting a stream on the Watch page, don't execute controlMute() (watch.js) When starting a stream on the Watch page, don't execute controlMute(), as this will cause the icon to be displayed before the stream actually starts playing. We'll just set the "muted" property for the stream. We'll manage the icon later. --- web/skins/classic/views/js/watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 503b99dbf..b419ca872 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -836,7 +836,7 @@ function streamStart(monitor = null) { monitorStream.setPlayer($j('#player').val()); monitorStream.setBottomElement(document.getElementById('bottomBlock')); const cookieMuted = getCookie('zmWatchMuted'); - monitorStream.controlMute((cookieMuted === null || cookieMuted === 'true') ? 'on' : 'off'); // default to muted + monitorStream.muted = (cookieMuted === null || cookieMuted === 'true') ? true : false; // default to muted monitorStream.manageAvailablePlayers(); setChannelStream(); // Start the fps and status updates. give a random delay so that we don't assault the server