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.
This commit is contained in:
IgorA100
2026-03-19 10:39:29 +03:00
committed by GitHub
parent 4a518c5708
commit f04a9075cc

View File

@@ -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