mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-24 16:51:47 -04:00
Merge pull request #4713 from IgorA100/patch-792734
Fix: Read from 'zmWatchMuted' cookies instead of 'zmWatchMute' on Watch page
This commit is contained in:
@@ -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.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