Commit Graph
14658 Commits
Author SHA1 Message Date
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 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 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 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 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
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 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 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 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 fa6d52cdd5 Merge pull request #6267 from singhharsh1708/fix/montagereview-current-time
fix: start montage review at the requested current time
2026-11-15 21:17:15 -05:00
Isaac Connor a13e0113dd Merge pull request #6056 from AJ0070/watch-events-request-checks
fix: watch event list and Events list edge cases
2026-11-15 21:15:01 -05:00
Isaac Connor 71569fdeb3 Merge pull request #6090 from singhharsh1708/fix/ptz-new-preset-label
fix: php warning when saving the first label for a ptz preset
2026-11-15 21:14:20 -05:00
Isaac Connor 5c96f6d676 Merge pull request #6058 from AJ0070/sonnet-object-find
fix: keep all IN values in ZM_Object::_find
2026-11-15 21:14:03 -05:00
Isaac Connor 10235ebb37 Merge pull request #6060 from AJ0070/get-networks-names
fix: get_networks interface and route parsing
2026-11-15 21:13:49 -05:00
Isaac Connor 511b18ef92 Merge pull request #6070 from AJ0070/sonnet-js-zone-link
fix: tokenize linked monitor expressions with parentheses
2026-11-15 21:13:00 -05:00
Isaac Connor f5820a774b Merge pull request #6074 from AJ0070/sonnet-js-options-export
fix: reports list query error handling
2026-11-15 21:12:45 -05:00
Isaac Connor 7609af98a7 Merge pull request #6082 from AJ0070/sonnet-database-php
fix: bool binding and failed queries in database.php helpers
2026-11-15 21:12:30 -05:00
Isaac Connor 1fbbfb2330 Merge pull request #6084 from AJ0070/sonnet-modals
fix: filter Debug SQL matches zmfilter
2026-11-15 21:12:12 -05:00
Isaac Connor bc9cb91c2f Merge pull request #6094 from singhharsh1708/fix/api-event-delete-500
fix: answer a successful API event delete with Deleted instead of a 500
2026-11-15 21:11:08 -05:00
Isaac Connor 6473a07f56 Merge pull request #6096 from singhharsh1708/fix/api-event-neighbors
fix: limit the API event view Next and Prev to events on monitors the user may view
2026-11-15 21:10:49 -05:00
Isaac Connor b0ffb66468 Merge pull request #6120 from singhharsh1708/fix/frames-row-type-class
fix: color frames list rows by type in every language
2026-11-15 21:07:42 -05:00
Isaac Connor 6be0cf197e Merge pull request #6122 from singhharsh1708/fix/controlcap-zoom-error
fix: name can zoom in the control capability zoom error
2026-11-15 21:07:12 -05:00
Isaac Connor 18cfc7abd5 Merge pull request #6129 from singhharsh1708/fix/monitors-bulk-save-csp
fix: hide bulk monitor edit buttons on save without an inline handler
2026-11-15 21:06:39 -05:00
Isaac Connor 2638f99032 Merge pull request #6124 from singhharsh1708/fix/monitorpreset-double-escape
fix: stop double escaping monitor preset names
2026-11-15 21:06:27 -05:00
Isaac Connor e018395dc4 Merge pull request #6126 from singhharsh1708/fix/menu-reset-confirm
fix: ask for confirmation before resetting menu items
2026-11-15 21:06:02 -05:00
Isaac Connor 734ce8b2d9 Merge pull request #6132 from singhharsh1708/fix/zones-delete-button
fix: enable zone delete buttons when several monitors are listed
2026-11-15 21:05:20 -05:00
Isaac Connor 5e4fc64fc4 Merge pull request #6135 from singhharsh1708/fix/ptz-pseudomap-rotation
fix: click-to-move PTZ on 90 and 270 degree rotated monitors
2026-11-15 21:02:31 -05:00
Isaac Connor 471c13dabf Merge pull request #6137 from singhharsh1708/fix/version-remind-month
fix: make the update notice reminder options do something
2026-11-15 21:02:11 -05:00
Isaac Connor 037cdd327c Merge pull request #6139 from AJ0070/sonnet-options-menu
fix: menu save leaves entries that were not on the form
2026-11-15 21:01:16 -05:00
Isaac Connor 5b7b8068f7 Merge pull request #6177 from AJ0070/agy-control-php
fix: PTZ commands on rotated monitors, speed options and preset 0
2026-11-15 20:52:38 -05:00
Isaac Connor 56b3b07b0f Merge pull request #6277 from singhharsh1708/fix/ai-class-dataset-filter-view
fix: ai classes dataset filter hides every row for view-only users
2026-11-15 20:51:26 -05:00
Isaac Connor 3ee50a79c4 Merge pull request #6279 from singhharsh1708/fix/api-disk-percent-deleted-monitors
fix: leave deleted monitors out of the API disk usage report
2026-11-15 20:50:36 -05:00
Isaac Connor d51d27f8cb Merge pull request #6293 from singhharsh1708/fix/groups-clear-cookie
fix: clearing the selected group no longer fails with an error
2026-11-15 20:48:59 -05:00
Isaac Connor b29cda14a7 Merge pull request #6295 from singhharsh1708/fix/frames-bad-advsearch
fix: frames list answers a malformed advanced search instead of failing
2026-11-15 20:48:42 -05:00
Isaac Connor 8b6ff90769 Merge pull request #6183 from singhharsh1708/fix/v4l2-settings-control-edit
fix: require control edit permission to change camera settings over ajax
2026-11-15 20:46:18 -05:00
Isaac Connor 3860485159 Merge pull request #6197 from singhharsh1708/fix/api-model-text-rule
fix: stop the API logging a missing validation handler on every user preference and event data save
2026-11-15 20:42:15 -05:00
Isaac Connor 3d5cfa85cd Merge pull request #6195 from singhharsh1708/fix/api-zone-add-website
fix: stop the zones API starting zmc for a WebSite monitor when a zone is added
2026-11-15 20:40:57 -05:00