Files
ComfyUI_frontend/apps
Yourz 54cac15610 fix(website): harden LottieVideoPlayer load errors and gate videos by shouldPlay
- Wrap dynamic import('lottie-web') and loadAnimation in try/catch:
  cleanup partial anim, keep assetsReady false, log src + error,
  and emit('ready') so the fallback path completes.
- Stop autoplaying injected <video> elements on creation. Track them
  in a module-level array and play/pause from the existing shouldPlay
  watcher (currentTime=0 on pause for clean re-entry). Pause and
  reset videos when src/assetsPath changes and on unmount so inactive
  scenes stop decoding.

Amp-Thread-ID: https://ampcode.com/threads/T-019e0ce9-0296-730f-9c91-162432c4b8e6
Co-authored-by: Amp <amp@ampcode.com>
2026-05-09 22:35:00 +08:00
..