Commit Graph

2 Commits

Author SHA1 Message Date
0acd69b9ca Play recordings in a pop-out window, like the live view
Play now opens /recordings/play?clip=… in a window of its own: the video
on black, fitted to the window, with a fading overlay naming the camera
and the time. One window is reused for whichever clip is opened next, and
it stays an ordinary link so a blocked popup still opens a tab. The page
checks the session and resolves the clip inside the recordings folder.

Also add DOM cleanup to three test files that had none: renders piled up
in the document and tests read each other's markup, which is what made
the new test pass or fail depending on its position in the file.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 05:38:51 -05:00
4fc68cacf1 Add a Recordings page to browse, play and delete motion clips
- /recordings lists clips newest first with camera, time and size, plays
  them in the browser and deletes after a confirmation.
- /api/recordings lists clips; /api/recordings/clip serves one with Range
  support so seeking works, and deletes it. A clip is named by folder and
  file name, both matched against fixed patterns and resolved inside the
  recordings folder, so no request can reach another file.
- Each camera's page links to its own clips.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-19 17:16:14 -05:00