fix: hydrate camera popup from GET /api/cameras/{id} #9
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/camera-popup-hydrate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Camera list payload is slim (no URLs). Popups were rendered from that row, so YouTube thumbs had no video id (
youtube id missing) and never embedded.Popup now fetches
GET /api/cameras/{id}and builds the player from the full row (HLS / YouTube / HTTP).Test
pytest tests/test_camera_popup_contract.py tests/test_map_payloads.py -qVerify
Zoom past 4, click a camera pin. YouTube should embed; HLS should hit
/hls.m3u8.