TODO: Offline detection & archiving
Detects when devices go offline and triggers archive creation.
- Device is offline if no frames for
ARCHIVE_OFFLINE_THRESHOLD_SECONDS - Sessions exceeding
ARCHIVE_MAX_SESSION_DURATION_SECONDSare auto-broken
- Copies segments to archive location
- Generates VOD playlist
- Records metadata in PostgreSQL
src/stream_processor/service/offline_checker.pysrc/stream_processor/service/archive_service.py