Checking Whether Imou Cloud Live Gives Me HLS
Описание и применение
Проверка поддержки HLS в Imou Cloud Live и безопасное воспроизведение с fail‑closed логикой.
Задача
Determine if an Imou Cloud Live session supports HLS and play it safely, avoiding unsupported formats or insecure content.
Результат
Implemented fail‑closed logic that only plays HLS or FLV streams when explicitly supported, blocks insecure content, and cleans up resources on exit.
Рабочий процесс
- Verify camera is bound and online
- Open live session via gateway
- Check session.kind (hls, flv, other)
- Mount appropriate player or fail closed
- Ensure HTTPS for page and playlist
- Destroy player on visibility change or unmount
Доказательства
I persist live.kind from the session payload my gateway understands.
I never let the SPA call the vendor with an admin secret.
I keep kind as an enum I own. If the vendor adds a value I do not map, production fails closed instead of inventing a player.
- Дата записи: 2026-09-22T05:00:20.597Z