Checking Whether Imou Cloud Live Gives Me HLS
说明与用途
检查 Imou Cloud Live 是否支持 HLS 并安全播放,采用 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