Skip to content

Fix: Read from 'zmWatchMuted' cookies instead of 'zmWatchMute' on Watch page#4713

Merged
connortechnology merged 2 commits intoZoneMinder:masterfrom
IgorA100:patch-792734
Mar 21, 2026
Merged

Fix: Read from 'zmWatchMuted' cookies instead of 'zmWatchMute' on Watch page#4713
connortechnology merged 2 commits intoZoneMinder:masterfrom
IgorA100:patch-792734

Conversation

@IgorA100
Copy link
Contributor

@IgorA100 IgorA100 commented Mar 17, 2026

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."

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.

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."
… (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.
@connortechnology connortechnology merged commit fd8adee into ZoneMinder:master Mar 21, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants