Commit Graph
361 Commits
Author SHA1 Message Date
IgorA100andCopilot ce9c93dc5a Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-29 16:01:10 +03:00
IgorA100 5d958111ff We'll now pause audioMotion in MonitorStream.js. (MonitorStream.js) 2026-04-28 16:27:17 +03:00
IgorA100 79e5a56b80 Adjusting the display of the "infoBlock" block (MonitorStream.js) 2026-04-23 00:01:10 +03:00
IgorA100 f8df2fa0c0 Merge branch 'master' into patch-435415 2026-04-11 14:51:53 +03:00
Isaac Connor 3ac03fa8c9 Merge pull request #4721 from IgorA100/patch-990359
Fix: Prevent vertical shifting of #content on the Watch page when displaying the stream status overlay. on Watch page
2026-04-10 10:16:12 -04:00
Isaac ConnorandClaude Opus 4.6 692b77b4da fix: guard against empty auth_relay producing double && in zms URLs
When auth is disabled or auth_relay is empty, appending '&'+auth_relay
produces a trailing '&' which results in double '&&' when the next
parameter is appended (e.g. ?monitor=2&&scale=41&mode=single).

Guard all 4 places in MonitorStream.js where auth_relay is concatenated
into URLs, consistent with EventStream.js which already guards this.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 12:27:56 -04:00
IgorA100 bbe1b6f00e Update MonitorStream.js 2026-03-28 00:00:44 +03:00
IgorA100 d8ada88da7 Update MonitorStream.js 2026-03-27 23:57:50 +03:00
IgorA100 f3a2910e93 Instead of audioMotion.play(), use audioMotion.init() (MonitorStream.js) 2026-03-21 22:12:27 +03:00
IgorA100 b4dc754506 Fix: Eslint (MonitorStream.js) 2026-03-19 12:39:33 +03:00
IgorA100 89a983984e Merge branch 'ZoneMinder:master' into patch-435415 2026-03-19 12:33:45 +03:00
IgorA100 1a1c219e26 skin.js
- Clear IconMute when executing destroyVolumeSlider()
- Added the ability to clear the icon state to changeStateIconMute()

MonitorStream.js
- Set #volumeControls to "disabled" instead of "hidden"
- Don't execute controlMute() when executing createVolumeSlider()

Added:
audioMotionAnalyzer.js
2026-03-19 12:28:47 +03:00
IgorA100 1af54ad008 Creating a volume slider on the Montage page to simultaneously control the volume of all monitors
Moving the volume slider control portion from MonitorStream.js to skin.js
2026-03-18 14:16:28 +03:00
IgorA100 1fc68a3e84 If the system volume was set to 0, change the state of the "Mute" icon in the volume slider (MonitorStream.js) 2026-03-18 13:32:01 +03:00
IgorA100 d9361ea63e Fix parent 2026-03-16 19:08:09 +03:00
IgorA100 82095fe9d8 If we don't display the video, then display the information block on "#monitorXX" 2026-03-16 19:03:32 +03:00
Isaac ConnorandClaude Opus 4.6 5561829450 fix: include username in auth relay and fix stale auth in stream restart
- Add user= parameter to get_auth_relay() so zms can use the indexed
  Username column instead of iterating all users to validate the hash
- Apply the same fix to Event.php getStreamSrc() and getThumbnailSrc()
- Tighten Monitor.php from isset() to !empty() for consistency
- In MonitorStream.js start(), check if the auth hash in the img src
  matches the current auth_hash before resuming via CMD_PLAY. If stale,
  fall through to rebuild the URL with fresh auth_relay. This prevents
  long-running montage pages from spawning zms with expired credentials.
- Downgrade zms auth failure from Error to Warning

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 10:01:47 -04:00
IgorA100 524ab91cc3 Added audio visualization 2026-03-15 00:50:35 +03:00
IgorA100 f536252a85 Set "pointer-events: none" for "imgInfoBlock" and "infoBlock" to disable pointer events for them (MonitorStream.js) 2026-03-14 17:16:39 +03:00
IgorA100 94b1ead0f4 When stopping a stream, execute writeTextInfoBlock after checking the existence of the stream (MonitorStream.js) 2026-03-14 16:07:50 +03:00
IgorA100andCopilot Autofix powered by AI d43dd30155 Normalizing text before assigning it to a DOM element
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-03-14 15:45:01 +03:00
IgorA100 dcd3ef06ad Instead of explicitly specifying the text size, we use a call to the new function "setTextSizeOnInfoBlock" (MonitorStream.js)
This will allow us to correctly specify the class for the block.
2026-03-13 11:43:42 +03:00
IgorA100 33783300bd Fix: Eslint (MonitorStream.js) 2026-03-12 23:58:27 +03:00
IgorA100 d00f56d036 When a stream is loaded, paused, or stopped, display a corresponding caption in the center of the stream player. (MonitorStream.js)
Additionally, when loading or stopping a stream using Go2RTC, RTSP2Web, or Janus, display a static image generated at that moment.
2026-03-12 23:41:32 +03:00
IgorA100 7d833bd8bb Fix Eslint (MonitorStream.js) 2026-03-11 18:57:16 +03:00
IgorA100 1478594780 Code optimization (MonitorStream.js)
- getAudioStream has been renamed to getAVStream
- Clear this.handlerEventListener['volumechange'] when the stream is stopped
- Check volumeSlider.noUiSlider after assigning the listener
- This.handlerEventListenerStream does not require an argument (stream), but if we have already received a stream, we will pass it as an argument to avoid searching for the stream again.
2026-03-11 18:53:05 +03:00
IgorA100andCopilot 23fd92ef3a Update web/js/MonitorStream.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-11 18:08:59 +03:00
IgorA100 ced61c1c7d Update MonitorStream.js 2026-03-10 17:59:45 +03:00
IgorA100 2bf9d415da The listener assignment has been moved above the noUiSlider check (MonitorStream.js).
I also removed the unnecessary code for checking the presence of audioStream.
2026-03-10 10:57:01 +03:00
IgorA100 aa7aa38d70 Using "manageEventListener" for the 'volumechange' event (MonitorStream.js) 2026-03-10 01:07:15 +03:00
IgorA100 d051848fbf Fix: Eslint (MonitorStream.js) 2026-03-09 23:36:54 +03:00
IgorA100 d797a1e100 We use manageEventListener to set and remove listeners for the stream's "play" event. (MonitorStream.js)
We'll also now receive tracks from the stream when playback begins.
2026-03-09 23:23:29 +03:00
Isaac ConnorandClaude Opus 4.6 cb57de7d61 fix: sync analysis button state with zms-reported analysis image status
When zms reports it is not sending analysis frames (e.g. monitor is not
analysing), update the analyse button appearance and MonitorStream's
analyse_frames state to reflect reality. Register the analyseBtn via
setButton in both watch and zone views so MonitorStream can update it.
View-level toggle handlers now read the current state from MonitorStream
before toggling to stay in sync with server-reported changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 16:46:25 -04:00
Isaac ConnorandClaude Opus 4.6 4df2bf4f0b feat: add analysis_image field to stream status for client-side verification
Add a boolean analysis_image field to the CMD_QUERY status response that
reports whether zms is actually sending analysis images (with motion zone
overlays) or regular capture images. This lets MonitorStream.js detect
when the stream state is out of sync with what the client requested and
re-send the CMD_ANALYZE_ON/OFF command to correct it.

The field is true only when frame_type is FRAME_ANALYSIS, shared memory
is valid, and the monitor has analysis enabled — matching the same
condition used to select the image in the streaming loop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 15:44:49 -04:00
Isaac Connor b3114c2f60 Merge pull request #4682 from IgorA100/patch-723160
Fix: Remove unused listeners when stopping a stream.
2026-03-08 10:40:20 -04:00
IgorA100 e77993e35f Instead of "useCapture" we use the extended version "options" MonitorStream.js 2026-03-08 12:38:45 +03:00
Isaac ConnorandCopilot dbd52087d3 Update web/js/MonitorStream.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 17:35:02 -05:00
Anatoliy Korovkin 84465bd28d Use const for Janus onremotetrack locals
Replace let with const for stream/audioElement since they are not reassigned.
2026-03-06 10:09:59 +01:00
IgorA100 15cb090d95 Instead of handlerEventListener, we use this.handlerEventListener (MonitorStream.js).
We won't use the "this.killStreamListenerId" variable recommended by Copilot, but will instead use the this.handlerEventListener array, as we may have other listeners in the future.
Using an array will eliminate the need to declare additional constants.
2026-03-06 10:46:09 +03:00
Anatoliy Korovkin 479b58c023 Fix ReferenceError in Janus onremotetrack handler
When using Janus live streaming, MonitorStream.js assigns to undeclared variables (stream, audioElement) inside onremotetrack(). In strict mode this causes "ReferenceError: stream is not defined" and breaks playback. This change declares stream/audioElement with let, fixing Janus live video/audio playback.
2026-03-06 00:17:34 +01:00
IgorA100 2f9839b20b To assign the 'beforeunload' listener and remove the listener, we now use the ManageEventListener class (MonitorStream.js) 2026-03-05 19:01:25 +03:00
Isaac Connor a13d618946 Merge pull request #4643 from IgorA100/patch-412820
Fix: More correct processing of the stream after hiding and then displaying the Watch page
2026-03-05 08:32:23 -05:00
IgorA100 436b220e30 Use play() on the VIDEO tag, but not from MonitorStream to avoid recursion (MonitorStream.js) 2026-03-05 10:05:42 +03:00
IgorA100 da47c57929 Merge branch 'master' into patch-900470 2026-03-05 09:50:50 +03:00
Isaac ConnorandCopilot efe6bf341b Update web/js/MonitorStream.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-04 20:51:02 -05:00
IgorA100 c50f795e61 Removed "waitUntil" since it's now in skin.js (MonitorStream.js) 2026-03-04 14:41:52 +03:00
IgorA100 cfafd6ca6a Update MonitorStream.js 2026-03-02 10:07:21 +03:00
IgorA100 4b2506d152 Fix: Eslint (MonitorStream.js) 2026-03-01 19:10:24 +03:00
IgorA100 a3be887919 Merge branch 'master' into patch-900470 2026-03-01 19:06:32 +03:00
IgorA100 3d02585634 Fix: If an RTSP2Web type RTC error occurs, restart the stream instead of killing it (MonitorStream.js) 2026-03-01 00:31:08 +03:00