mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-22 21:38:52 +00:00
- 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>