diff --git a/packages/studio/src/player/hooks/useTimelinePlayer.ts b/packages/studio/src/player/hooks/useTimelinePlayer.ts index f503e8299..dc77122f3 100644 --- a/packages/studio/src/player/hooks/useTimelinePlayer.ts +++ b/packages/studio/src/player/hooks/useTimelinePlayer.ts @@ -407,6 +407,16 @@ export function useTimelinePlayer() { if (usePlayerStore.getState().isPlaying) setIsPlaying(false); shuttleDirectionRef.current = null; shuttleSpeedIndexRef.current = 0; + try { + const doc = iframeRef.current?.contentDocument; + if (doc) { + for (const el of doc.querySelectorAll("video, audio")) { + (el as HTMLMediaElement).pause(); + } + } + } catch { + /* cross-origin */ + } } return true; },