Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

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