diff --git a/templates/clips/app/components/player/video-player.tsx b/templates/clips/app/components/player/video-player.tsx index 74c3767640..8664d4755f 100644 --- a/templates/clips/app/components/player/video-player.tsx +++ b/templates/clips/app/components/player/video-player.tsx @@ -277,9 +277,18 @@ export const VideoPlayer = forwardRef( // without this guard that effect would treat the two URLs as the "same // resource" and immediately revert our retry before `.load()` completes. const recoveringFromErrorRef = useRef(false); + const prevMseModeRef = useRef(""); + // Render-phase mirrors of currentMs / isPlaying so the MSE-fallback effect + // below can read the pre-failure values. By the time effects run, React has + // already committed the new