feat(cameras): large view opens in the tile's state (live tile → Live on the same stream, idle tile → Snapshot)
Build & push images / images (push) Successful in 3m56s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RZgP5oMncSaVmKRKk1UvN4
This commit is contained in:
2026-11-17 15:57:35 +01:00
parent 4fd5bf852e
commit 52354d194a
2 changed files with 19 additions and 10 deletions
+10 -3
View File
@@ -21,10 +21,14 @@ verified end to end against the two park-lab cameras through the real server and
- A tile rests on the **latest entry/exit snapshot** of that camera; when the camera's vehicle
events reach the booth, it shows **live video**.
- (2026-11-17, second round) Live shows a **pulsing green LIVE badge**. A click on the picture opens a
**large view** that streams **live on demand** — car or no car — with a **Live / Snapshot
switch**, so a camera-started stream can be stopped to look at the last snapshot and a
**large view** with a **Live / Snapshot switch** whose Live streams **on demand** — car or no
car — so a camera-started stream can be stopped to look at the last snapshot and a
snapshot can be switched to live. Closing the large view returns the tile to automatic: a
stream the user started stops; a stream the camera started carries on in the tile.
- (2026-11-17, third round) The large view **opens in the tile's state**: on Live when the camera
is active (the same stream carries on, no reconnect), else on the Snapshot. The choice then
holds while the view is open — a car leaving does not drop it to the snapshot, a car arriving
does not switch it to live.
### When the stream stops
@@ -111,7 +115,10 @@ resting on its camera's latest snapshot with direction and time; after the entry
the entry tile went **LIVE** (live OSD clock); a reload restored both tiles; ✕ closed one and the
saved preference followed. Second round: the large view on an idle camera streamed live on
demand; Snapshot/Live switched both ways; closing it stopped the user's stream; on a camera-started
stream, Snapshot in the large view stopped it and closing the view resumed it in the tile.
stream, Snapshot in the large view stopped it and closing the view resumed it in the tile. Third round (no camera credentials
in that run, so no frames — the socket count and the switch state were checked): an idle tile opens
the large view on Snapshot with no socket; an active tile opens it on Live on the same socket (no
reconnect); the close rules held.
## Not yet verified