mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-27 02:56:33 +00:00
Server-side: - Bundle gen: when camera event_source is "auto", first kiosk to fetch bundle claims ownership → writes "kiosk:<id>" to camera row. Other kiosks see assigned owner and skip ONVIF subscription. - Kiosk deletion resets event_source back to "auto" so next kiosk takes over. - repo.getActiveOnvifOwners() for future use. Kiosk-side: - Only subscribe when event_source is "auto" or "kiosk:<MY_ID>". Skips "kiosk:<other_id>", "server", "none", "disabled". - Poll interval: 3s → 10s (cameras were getting overwhelmed) - CreatePullPoint backoff: exponential 30s→60s→120s...→600s max - Pull errors: exponential 15s→30s→45s...→300s, resubscribe after 5 consecutive failures instead of immediately. - load_kiosk_id() helper reads from cached bundle. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.lock | ||
| Cargo.toml | ||
| prototype.sh | ||