mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-24 08:41:40 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user