mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 06:17:40 +00:00
currentResolution state and currentSrcRef were only initialized on mount, so if file.id changed without a remount the video.js init effect (keyed on file.id) would re-create the player with a stale source. Add an effect that resets them when file.id changes, before the init effect runs, making the pane robust even without a per-asset key on the parent.