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

Checking Whether Imou Cloud Live Gives Me HLS

Description and use

Verify HLS support in Imou Cloud Live and play it safely with fail‑closed logic.

Problem

Determine if an Imou Cloud Live session supports HLS and play it safely, avoiding unsupported formats or insecure content.

Outcome

Implemented fail‑closed logic that only plays HLS or FLV streams when explicitly supported, blocks insecure content, and cleans up resources on exit.

Workflow

  • 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

Evidence

I persist live.kind from the session payload my gateway understands.

Source

I never let the SPA call the vendor with an admin secret.

Source

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.

Source

  • Record date: 2026-09-22T05:00:20.597Z