Commit Graph
31290 Commits
Author SHA1 Message Date
Jash 37fba53cbc test: update PHP tests whose mocks and source patterns fell behind master refs #6483 2026-11-16 20:11:52 +05:30
Jash 440173a824 fix: delete confirmation modal falls back to its default text for an empty key or title refs #6483 2026-11-16 20:11:52 +05:30
Isaac Connor fe013898c3 Merge pull request #6440 from AJ0070/fix-config-hex-logfile-env
fix: hex config file options and empty LOG_FILE
2026-11-16 08:51:36 -05:00
Isaac Connor f0b52d1fdd Merge pull request #6430 from AJ0070/fix-zmcamtool-overwrite-socket
fix: zmcamtool control Id on overwrite, socket export and --topreset id
2026-11-16 08:48:14 -05:00
Isaac Connor 732641d6ad Merge pull request #6428 from AJ0070/fix-zmupdate-migrate-eof
fix: zmupdate migrate-events column and prompts on closed stdin
2026-11-16 08:47:56 -05:00
Isaac Connor b89320b11d Merge pull request #6142 from singhharsh1708/fix/vnc-output-buffer-size
fix: vnc monitors fail every capture when the row size is not a multiple of 32 bytes
2026-11-16 08:20:47 -05:00
Isaac Connor 5488b403c4 Merge pull request #6303 from AJ0070/sonnet-js-small
fix: frames list error handling and device key encoding
2026-11-16 08:20:14 -05:00
Isaac Connor 8156c904b6 Merge pull request #6305 from AJ0070/sonnet-api-users-notif
fix: API users controller with auth off and edit/add errors
2026-11-16 08:19:51 -05:00
Isaac Connor 6e611a220c Merge pull request #6317 from AJ0070/test-amcrest-uri-encode-stub
test: define the URI::Encode stub at run time in the Amcrest PTZ test
2026-11-16 08:19:30 -05:00
Isaac Connor e21e3a348a Merge pull request #6311 from AJ0070/fix-onvif-probe-helpers
fix: ONVIF probe handles multiple matches, single profiles, SOAP 1.1 Types and missing PTZ
2026-11-16 08:18:47 -05:00
Isaac Connor 5c68d01d5a Merge pull request #6313 from AJ0070/fix-model-save-manufacturer
fix: Model save no longer dies without a Manufacturer object
2026-11-16 08:18:23 -05:00
Jash 8b8c0c8b64 fix: read hexadecimal int options from config files and ignore an empty LOG_FILE refs #6439 2026-11-16 16:30:45 +05:30
Jash 8e0794d427 fix: zmcamtool keeps the control Id on overwrite, exports over a DB socket, validates --topreset ids refs #6429 2026-11-16 15:41:11 +05:30
Jash 64a679d803 fix: zmupdate --migrate-events queries StartDateTime and prompts stop on closed stdin refs #6427 2026-11-16 15:38:02 +05:30
Jash 2482b3f82f test: define the URI::Encode stub at run time in the Amcrest PTZ test refs #6316 2026-11-16 10:01:42 +05:30
Isaac Connor 4810e25903 Merge pull request #5068 from AJ0070/fix/4242-dts-log-spam
fix: rate limit the non increasing dts warning
2026-11-15 23:28:43 -05:00
Isaac Connor 594ee33038 Merge pull request #6072 from AJ0070/sonnet-ffout-h264
fix: RTSP server NAL padding and RTP timestamps
2026-11-15 23:20:15 -05:00
Isaac Connor e2622f2ae2 Merge pull request #6066 from AJ0070/sonnet-remote-regexp
fix: RegExpr stale matches and remote camera user@host credentials
2026-11-15 23:19:55 -05:00
Isaac Connor 65e2df4f35 Merge pull request #6131 from AJ0070/sonnet-storage-cron
fix: storage modal Path and storage/cron save edge cases
2026-11-15 23:19:28 -05:00
Isaac Connor ac15b9bceb Merge pull request #6167 from singhharsh1708/fix/spp1802-down-autostop
fix: auto stop SunEyes SP-P1802SWPTZ down moves like the other directions
2026-11-15 23:18:43 -05:00
Isaac Connor 7768ad15d5 Merge pull request #6229 from AJ0070/monitorlink-zone-score
fix: linked monitor zone score uses the linked state
2026-11-15 23:16:36 -05:00
Isaac Connor 019e41ae14 Merge pull request #5561 from connortechnology/fix/hevc-event-player-jsside-master
fix: choose the event player client-side so HEVC plays natively when supported
2026-11-15 23:15:45 -05:00
Isaac Connor 085b23ae18 Merge pull request #6048 from AJ0070/amcrest-event-parse
fix: parse Amcrest event stream parts correctly
2026-11-15 23:14:28 -05:00
Isaac Connor 2372c3696d Merge pull request #6020 from AJ0070/frame-view-navigation
fix: frame view navigation links point at existing frames
2026-11-15 23:14:06 -05:00
Isaac Connor eeabdd4cc3 Merge pull request #6024 from AJ0070/sonnet-probe-views
fix: handle host-less Ffmpeg paths and empty results in probe views
2026-11-15 23:13:46 -05:00
Isaac Connor 6155d6d9ab Merge pull request #6032 from AJ0070/secondary-storage-dodelete
fix: respect DoDelete on the secondary storage
2026-11-15 23:13:24 -05:00
Isaac Connor 6f70e73eb3 Merge pull request #6037 from IgorA100/patch-640436
Fixed the Cron page layout
2026-11-15 23:13:10 -05:00
Isaac Connor 7cb7ee0651 Merge pull request #6036 from AJ0070/agy-perl-followups
fix: validate ZM_TELEMETRY_INTERVAL in zmtelemetry
2026-11-15 23:12:52 -05:00
Jash 746c75f67a fix: storage modal empty Path, storage save without fields, cron save of a deleted job refs #6128 2026-11-16 09:28:17 +05:30
Jash 63987e12db fix: handle host-less Ffmpeg paths and empty results in probe views refs #6023 2026-11-16 09:28:17 +05:30
Jash 4e94ca1dd9 fix: frame view navigation links point at existing frames around the shown one refs #6019 2026-11-16 09:27:59 +05:30
Jash 20e753f1ee fix: linked zone scores only count while the linked monitor is alarmed refs #6228 2026-11-16 09:27:23 +05:30
Jash a65448dbdb fix: RegExpr stale matches and index bounds, and user@host credentials for remote cameras refs #6065 2026-11-16 09:27:12 +05:30
Jash 3af199eba8 fix: parse Amcrest event parts after their headers and keep partial reads refs #6047 2026-11-16 09:27:12 +05:30
Jash 01369d128a fix: Model save no longer dies without a Manufacturer object refs #6312 2026-11-16 09:23:28 +05:30
Jash 550c2edb89 fix: ONVIF probe handles multiple matches, single profiles, SOAP 1.1 Types and missing PTZ refs #6310 2026-11-16 09:23:14 +05:30
Jash ab4b1741c5 fix: API users controller with auth off, edit method checks, error status codes and empty password refs #6304 2026-11-16 08:59:15 +05:30
Jash 25eed80ba2 fix: frames list leaves the loading state on errors and device keys are URL-encoded refs #6302 2026-11-16 08:51:22 +05:30
Isaac ConnorandClaude Opus 4.8 b4e6ad2053 fix: address review on the event player selection
- Escape the emitted stream URLs (mp4Src/hlsSrc/zmsImgSrc) with validJsStr like
  every other JS string. They carry query params that can include the session
  username and an auth hash, so an unescaped quote or backslash could break out
  of the JS string literal.
- For codec=auto, offer the HLS source only for a live event. The codec probe
  that selected the native player tested the recorded mp4, so a finished event
  plays that mp4 directly; HLS is needed only while the manifest is still growing
  at the recording edge. Keeps the played source consistent with what was probed.
- Drop the meaningless format=h264 from the auto mp4 src: view_video serves the
  raw recorded file and ignores format.
- Give the caption track a valid data URI media type (text/vtt).

tests/js/event-player-selection.test.js gains cases for the live-vs-finished HLS
source ordering (7 assertions total).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-15 21:24:31 -05:00
Isaac ConnorandClaude Opus 4.8 696ebecd1c fix: choose the event player client-side so HEVC plays natively when supported
The event view decided server-side (event.php $video_tag) whether to play the
recording's MP4 directly or fall back to a zms MJPEG re-stream. For H.265/HEVC
on codec=auto it always chose zms, because PHP cannot know whether the browser
can decode HEVC. On busy or high-resolution installs that zms process misses its
per-second status check, flooding the logs (web_php timeout, web_js error,
"Can't sendto on sd N") and stuttering, even on browsers that could have played
the file natively.

Move the decision to the browser, which is the only place that knows. For
codec=auto, event.php now renders a single-frame JPEG placeholder and emits the
candidate stream sources; after load, EventStream.chooseEventPlayer() uses the
existing canPlayCodec() probe to build the native video.js player when the
browser can decode the file's codec, otherwise the zms <img> the rest of
event.js already drives. The explicit MP4 / MP4HLS / MJPEG codec picks stay
server-rendered and unchanged.

This also capability-gates AV1 on auto (previously always native, which could
fail silently on browsers without AV1 decode).

Stage 1: the zms fallback keeps the legacy <img id="evtStream"> path, so every
existing zms function in event.js is untouched. Migrating that path onto the
EventStream canvas client is a later change.

The player-selection logic lives in web/js/EventStream.js
(canPlayFile/buildMp4Player/buildZmsImg/chooseEventPlayer);
tests/js/event-player-selection.test.js covers the branch and the DOM each side
builds (5 assertions).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-15 21:24:31 -05:00
Isaac Connor 86016abbd5 Merge pull request #6034 from AJ0070/filter-events-sort
fix: map filter sort fields in Filter::Events
2026-11-15 21:23:11 -05:00
Isaac Connor a426f2a2d3 Merge pull request #6039 from AJ0070/sonnet-zmwatch-startup
fix: zmwatch limits for StartupDelay and slow cameras
2026-11-15 21:22:43 -05:00
Isaac Connor 9bf99f84cc Merge pull request #6041 from AJ0070/sonnet-onvif-trigger
fix: zmonvif-trigger subscription failures, State notifications, -v flag
2026-11-15 21:22:27 -05:00
Isaac Connor 33579c9fab Merge pull request #6043 from AJ0070/sonnet-gpu-dnsmasq
fix: dnsmasq options save and config parsing
2026-11-15 21:22:03 -05:00
Isaac Connor f751269422 Merge pull request #6045 from AJ0070/intelgpu-client-columns
fix: Intel GPU clients table columns
2026-11-15 21:21:36 -05:00
Isaac Connor bec8503ad8 Merge pull request #6050 from AJ0070/ffmpeg-input-frame-boundary
fix: FFmpeg_Input frame lookup at frame boundaries
2026-11-15 21:21:09 -05:00
Isaac Connor 82f7a6a47d Merge pull request #6052 from AJ0070/sonnet-groups-snapshot
fix: group dropdown, parent validation and modal Save button
2026-11-15 21:20:29 -05:00
Isaac Connor cee1ed76fc Merge pull request #6054 from AJ0070/snapshots-list-width
fix: snapshots list division by zero
2026-11-15 21:20:15 -05:00
Isaac Connor d54fc3123e Merge pull request #6062 from AJ0070/sonnet-monitor-probe
fix: Add Monitors network probe interfaces, results and URL credentials
2026-11-15 21:20:02 -05:00
Isaac Connor 720248b6ac Merge pull request #6147 from singhharsh1708/fix/zmtrigger-mode-check
fix: zmtrigger warns when triggering a monitor that does not record
2026-11-15 21:19:11 -05:00