🎥 Make videos programmatically with React
`remotion`: Mute media inside `<Freeze>`
Jonny Burger0b1ae37caec7
diff --git a/packages/core/src/TimelineContext.tsx b/packages/core/src/TimelineContext.tsxindex f0b99f2815..dcb4e83d55 100644--- a/packages/core/src/TimelineContext.tsx+++ b/packages/core/src/TimelineContext.tsx@@ -17,6 +17,7 @@ import {useDelayRender} from './use-delay-render';export type TimelineContextValue = {frame: Record<string, number>;isPlaying: () => boolean;+ isInsideFreeze: boolean;audioAndVideoTags: RefObject<PlayableMediaTag[]>;};@@ -145,6 +146,7 @@ export const TimelineContextProvider: React.FC<{return {frame,isPlaying: readIsPlaying,+ isInsideFreeze: false,audioAndVideoTags,};}, [frame, readIsPlaying]);diff --git a/packages/core/src/audio/AudioForPreview.tsx b/packages/core/src/audio/AudioForPreview.tsxindex 1af9b0cc27..2c6e09dd1e 100644--- a/packages/core/src/audio/AudioForPreview.tsx+++ b/packages/core/src/audio/AudioForPreview.tsx@@ -15,6 +15,7 @@ import {usePreload} from '../prefetch.js';import {random} from '../random.js';import {SequenceOrderMarker} from '../sequence-order-marker.js';import {SequenceContext} from '../SequenceContext.js';+import {useIsInsideFreeze} from '../timeline-position-state.js';import {useVolume} from '../use-amplification.js';import {useMediaInTimeline} from '../use-media-in-timeline.js';import {useMediaPlayback} from '../use-media-playback.js';@@ -116,6 +117,9 @@ const AudioForDevelopmentForwardRefFunction: React.ForwardRefRenderFunction<volume,mediaVolume,});+ const isInsideFreeze = useIsInsideFreeze();+ const effectiveMuted =+ muted || playerMuted || userPreferredVolume <= 0 || isInsideFreeze;warnAboutTooHighVolume(userPreferredVolume);@@ -127,7 +131,7 @@ const AudioForDevelopmentForwardRefFunction: React.ForwardRefRenderFunction<const propsToPass = useMemo((): AudioHTMLAttributes<HTMLAudioElement> => {return {- muted: muted || playerMuted || userPreferredVolume <= 0,+ muted: effectiveMuted,src: preloadedSrc,loop: _remotionInternalNativeLoopPassed,crossOrigin: crossOriginValue,@@ -135,11 +139,9 @@ const AudioForDevelopmentForwardRefFunction: React.ForwardRefRenderFunction<};}, [_remotionInternalNativeLoopPassed,- playerMuted,- muted,+ effectiveMuted,nativeProps,preloadedSrc,- userPreferredVolume,crossOriginValue,]);// Generate a string that's as unique as possible for this asset@@ -191,7 +193,7 @@ const AudioForDevelopmentForwardRefFunction: React.ForwardRefRenderFunction<loopDisplay: undefined,documentationLink: 'https://www.remotion.dev/docs/html5-audio',refForOutline: null,- muted: muted ?? false,+ muted: Boolean(muted || isInsideFreeze),});// putting playback before useVolumediff --git a/packages/core/src/audio/AudioForRendering.tsx b/packages/core/src/audio/AudioForRendering.tsxindex 2ae2c80788..d091d6214a 100644--- a/packages/core/src/audio/AudioForRendering.tsx+++ b/packages/core/src/audio/AudioForRendering.tsx@@ -12,7 +12,10 @@ import {getAbsoluteSrc} from '../absolute-src.js';import {random} from '../random.js';import {RenderAssetManager} from '../RenderAssetManager.js';import {SequenceContext} from '../SequenceContext.js';-import {useTimelinePosition} from '../timeline-position-state.js';+import {+ useIsInsideFreeze,+ useTimelinePosition,+} from '../timeline-position-state.js';import {useCurrentFrame} from '../use-current-frame.js';import {useDelayRender} from '../use-delay-render.js';import {evaluateVolume} from '../volume-prop.js';@@ -56,6 +59,7 @@ const AudioForRenderingRefForwardingFunction: React.ForwardRefRenderFunction<loopVolumeCurveBehavior ?? 'repeat',);const frame = useCurrentFrame();+ const isInsideFreeze = useIsInsideFreeze();const sequenceContext = useContext(SequenceContext);const {registerRenderAsset, unregisterRenderAsset} =useContext(RenderAssetManager);@@ -97,7 +101,7 @@ const AudioForRenderingRefForwardingFunction: React.ForwardRefRenderFunction<return;}- if (props.muted) {+ if (props.muted || isInsideFreeze) {return;}@@ -123,6 +127,7 @@ const AudioForRenderingRefForwardingFunction: React.ForwardRefRenderFunction<return () => unregisterRenderAsset(id);}, [props.muted,+ isInsideFreeze,props.src,registerRenderAsset,absoluteFrame,diff --git a/packages/core/src/freeze.tsx b/packages/core/src/freeze.tsxindex e358c121be..7fbf8f7f55 100644--- a/packages/core/src/freeze.tsx+++ b/packages/core/src/freeze.tsx@@ -72,6 +72,7 @@ export const Freeze: React.FC<FreezeProps> = ({return {...timelineContext,isPlaying: () => false,+ isInsideFreeze: true,frame: {[videoConfig.id]: frameToFreeze + relativeFrom,},diff --git a/packages/core/src/internals.ts b/packages/core/src/internals.tsindex 51d3c6e813..89dadffb6b 100644--- a/packages/core/src/internals.ts+++ b/packages/core/src/internals.ts@@ -311,6 +311,7 @@ export const Internals = {useFrameForVolumeProp,useTimelinePosition: TimelinePosition.useTimelinePosition,useAbsoluteTimelinePosition: TimelinePosition.useAbsoluteTimelinePosition,+ useIsInsideFreeze: TimelinePosition.useIsInsideFreeze,evaluateVolume,getAbsoluteSrc,getAnimatedImageDurationInSeconds,diff --git a/packages/core/src/test/audio-for-rendering.test.tsx b/packages/core/src/test/audio-for-rendering.test.tsxindex 5f16c04664..849f42c68c 100644--- a/packages/core/src/test/audio-for-rendering.test.tsx+++ b/packages/core/src/test/audio-for-rendering.test.tsx@@ -3,6 +3,7 @@ import {cleanup, render} from '@testing-library/react';import React from 'react';import {AudioForRendering} from '../audio/AudioForRendering.js';import {CanUseRemotionHooksProvider} from '../CanUseRemotionHooks.js';+import {Freeze} from '../freeze.js';import {RenderAssetManager} from '../RenderAssetManager.js';import {expectToThrow} from './expect-to-throw.js';import {WrapSequenceContext} from './wrap-sequence-context.js';@@ -75,6 +76,28 @@ describe('Register and unregister asset', () => {expect(mockContext.unregisterRenderAsset).toHaveBeenCalled();});+ test('does not register a frozen audio asset', () => {+ const props = {+ src: 'test',+ muted: false,+ volume: 1,+ onDuration: mock(),+ onNativeError: mock(),+ audioStreamIndex: 0,+ };+ render(+ <CanUseRemotionHooksProvider>+ <mockContext.MockProvider>+ <Freeze frame={20}>+ <AudioForRendering {...props} />+ </Freeze>+ </mockContext.MockProvider>+ </CanUseRemotionHooksProvider>,+ );++ expect(mockContext.registerRenderAsset).not.toHaveBeenCalled();+ });+test('no src passed', () => {const props = {src: undefined,diff --git a/packages/core/src/test/nested-sequences.test.tsx b/packages/core/src/test/nested-sequences.test.tsxindex 00125e0578..64e2e1e241 100644--- a/packages/core/src/test/nested-sequences.test.tsx+++ b/packages/core/src/test/nested-sequences.test.tsx@@ -19,6 +19,7 @@ const getForFrame = (frame: number, content: React.ReactNode) => {'my-comp': frame,},isPlaying: () => false,+ isInsideFreeze: false,audioAndVideoTags: {current: [],},@@ -256,6 +257,7 @@ test('Sequence freeze pins the child frame without remounting the sequence', ()'my-comp': 15,},isPlaying: () => false,+ isInsideFreeze: false,audioAndVideoTags: {current: [],},@@ -277,6 +279,7 @@ test('Sequence freeze pins the child frame without remounting the sequence', ()'my-comp': 25,},isPlaying: () => false,+ isInsideFreeze: false,audioAndVideoTags: {current: [],},diff --git a/packages/core/src/test/series.test.tsx b/packages/core/src/test/series.test.tsxindex fb98be908f..8982d0a1b6 100644--- a/packages/core/src/test/series.test.tsx+++ b/packages/core/src/test/series.test.tsx@@ -51,6 +51,7 @@ const renderForFrame = (frame: number, markup: React.ReactNode) => {'my-comp': frame,},isPlaying: () => false,+ isInsideFreeze: false,audioAndVideoTags: {current: []},};diff --git a/packages/core/src/test/wrap-sequence-context.tsx b/packages/core/src/test/wrap-sequence-context.tsxindex 63f2a43dd3..2ff4e3c0a8 100644--- a/packages/core/src/test/wrap-sequence-context.tsx+++ b/packages/core/src/test/wrap-sequence-context.tsx@@ -119,6 +119,7 @@ export const WrapSequenceContext: React.FC<{() => ({frame: {'my-comp': currentFrame},isPlaying: () => false,+ isInsideFreeze: false,audioAndVideoTags: {current: []},}),[currentFrame],diff --git a/packages/core/src/timeline-position-state.ts b/packages/core/src/timeline-position-state.tsindex faa34735cf..8a4f1ad567 100644--- a/packages/core/src/timeline-position-state.ts+++ b/packages/core/src/timeline-position-state.ts@@ -99,6 +99,10 @@ export const useTimelinePosition = (): number => {return useTimelinePositionFromContext(state);};+export const useIsInsideFreeze = (): boolean => {+ return useTimelineContext().isInsideFreeze;+};+export const useAbsoluteTimelinePosition = (): number => {const state = useContext(AbsoluteTimeContext);if (state === null) {diff --git a/packages/core/src/video/OffthreadVideoForRendering.tsx b/packages/core/src/video/OffthreadVideoForRendering.tsxindex 0eeaa3f099..d25e98efe7 100644--- a/packages/core/src/video/OffthreadVideoForRendering.tsx+++ b/packages/core/src/video/OffthreadVideoForRendering.tsx@@ -18,7 +18,10 @@ import {Img} from '../Img.js';import {random} from '../random.js';import {RenderAssetManager} from '../RenderAssetManager.js';import {SequenceContext} from '../SequenceContext.js';-import {useTimelinePosition} from '../timeline-position-state.js';+import {+ useIsInsideFreeze,+ useTimelinePosition,+} from '../timeline-position-state.js';import {truthy} from '../truthy.js';import {useCurrentFrame} from '../use-current-frame.js';import {useDelayRender} from '../use-delay-render.js';@@ -59,6 +62,7 @@ export const OffthreadVideoForRendering: React.FC<AllOffthreadVideoProps> = ({const absoluteFrame = useTimelinePosition();const frame = useCurrentFrame();+ const isInsideFreeze = useIsInsideFreeze();const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);const videoConfig = useUnsafeVideoConfig();const sequenceContext = useContext(SequenceContext);@@ -107,7 +111,7 @@ export const OffthreadVideoForRendering: React.FC<AllOffthreadVideoProps> = ({return;}- if (muted) {+ if (muted || isInsideFreeze) {return;}@@ -134,6 +138,7 @@ export const OffthreadVideoForRendering: React.FC<AllOffthreadVideoProps> = ({return () => unregisterRenderAsset(id);}, [muted,+ isInsideFreeze,src,registerRenderAsset,id,diff --git a/packages/core/src/video/VideoForPreview.tsx b/packages/core/src/video/VideoForPreview.tsxindex 9694b0b5c0..14c7f795cd 100644--- a/packages/core/src/video/VideoForPreview.tsx+++ b/packages/core/src/video/VideoForPreview.tsx@@ -18,6 +18,7 @@ import {playbackLogging} from '../playback-logging.js';import {usePreload} from '../prefetch.js';import {SequenceOrderMarker} from '../sequence-order-marker.js';import {SequenceContext} from '../SequenceContext.js';+import {useIsInsideFreeze} from '../timeline-position-state.js';import {useVolume} from '../use-amplification.js';import {useMediaInTimeline} from '../use-media-in-timeline.js';import {useMediaPlayback} from '../use-media-playback.js';@@ -156,6 +157,9 @@ const VideoForDevelopmentRefForwardingFunction: React.ForwardRefRenderFunction<volume,mediaVolume,});+ const isInsideFreeze = useIsInsideFreeze();+ const effectiveMuted =+ muted || playerMuted || userPreferredVolume <= 0 || isInsideFreeze;warnAboutTooHighVolume(userPreferredVolume);@@ -180,7 +184,7 @@ const VideoForDevelopmentRefForwardingFunction: React.ForwardRefRenderFunction<? 'https://www.remotion.dev/docs/offthreadvideo': 'https://www.remotion.dev/docs/html5-video',refForOutline: videoRef,- muted: muted ?? false,+ muted: Boolean(muted || isInsideFreeze),});// putting playback before useVolume@@ -358,7 +362,7 @@ const VideoForDevelopmentRefForwardingFunction: React.ForwardRefRenderFunction<<video{...nativeProps}ref={videoRef}- muted={muted || playerMuted || userPreferredVolume <= 0}+ muted={effectiveMuted}playsInlinesrc={actualSrc}loop={_remotionInternalNativeLoopPassed}diff --git a/packages/core/src/video/VideoForRendering.tsx b/packages/core/src/video/VideoForRendering.tsxindex 3eadbbbd41..b015c04d16 100644--- a/packages/core/src/video/VideoForRendering.tsx+++ b/packages/core/src/video/VideoForRendering.tsx@@ -18,7 +18,10 @@ import {useLogLevel, useMountTime} from '../log-level-context.js';import {random} from '../random.js';import {RenderAssetManager} from '../RenderAssetManager.js';import {SequenceContext} from '../SequenceContext.js';-import {useTimelinePosition} from '../timeline-position-state.js';+import {+ useIsInsideFreeze,+ useTimelinePosition,+} from '../timeline-position-state.js';import {useCurrentFrame} from '../use-current-frame.js';import {useDelayRender} from '../use-delay-render.js';import {useRemotionEnvironment} from '../use-remotion-environment.js';@@ -62,6 +65,7 @@ const VideoForRenderingForwardFunction: React.ForwardRefRenderFunction<const absoluteFrame = useTimelinePosition();const frame = useCurrentFrame();+ const isInsideFreeze = useIsInsideFreeze();const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? 'repeat',);@@ -109,7 +113,7 @@ const VideoForRenderingForwardFunction: React.ForwardRefRenderFunction<throw new Error('No src passed');}- if (props.muted) {+ if (props.muted || isInsideFreeze) {return;}@@ -140,6 +144,7 @@ const VideoForRenderingForwardFunction: React.ForwardRefRenderFunction<return () => unregisterRenderAsset(id);}, [props.muted,+ isInsideFreeze,props.src,registerRenderAsset,id,diff --git a/packages/gif/src/test/Gif.test.tsx b/packages/gif/src/test/Gif.test.tsxindex 12a7b82866..31ea432363 100644--- a/packages/gif/src/test/Gif.test.tsx+++ b/packages/gif/src/test/Gif.test.tsx@@ -108,6 +108,7 @@ const compositionContext = {const timelineContext = {frame: {},isPlaying: () => false,+ isInsideFreeze: false,audioAndVideoTags: {current: []},} as React.ContextType<typeof Internals.TimelineContext>;diff --git a/packages/mac-cursors/src/test/resolve-cursor.test.ts b/packages/mac-cursors/src/test/resolve-cursor.test.tsindex 879ee608b0..8f22fc06a6 100644--- a/packages/mac-cursors/src/test/resolve-cursor.test.ts+++ b/packages/mac-cursors/src/test/resolve-cursor.test.ts@@ -107,6 +107,7 @@ test('<MacOSCursor> renders the default cursor when the cursor prop is omitted',const timeline = {frame: {comp: 0},isPlaying: () => false,+ isInsideFreeze: false,audioAndVideoTags: {current: []},} as React.ContextType<typeof Internals.TimelineContext>;const markup = renderToString(diff --git a/packages/media/src/audio/audio-for-preview.tsx b/packages/media/src/audio/audio-for-preview.tsxindex 4159853ab6..f88bcc2c9a 100644--- a/packages/media/src/audio/audio-for-preview.tsx+++ b/packages/media/src/audio/audio-for-preview.tsx@@ -26,6 +26,7 @@ const {SequenceContext,usePlaying,useBuffering,+ useIsInsideFreeze,} = Internals;type NewAudioForPreviewProps = {@@ -127,7 +128,9 @@ const AudioForPreviewAssertedShowing: React.FC<NewAudioForPreviewProps> = ({const isPostmounting = Boolean(parentSequence?.postmounting);const sequenceOffset = (parentSequence?.absoluteFrom ?? 0) / videoConfig.fps;- const effectiveMuted = muted || playerMuted || userPreferredVolume <= 0;+ const isInsideFreeze = useIsInsideFreeze();+ const effectiveMuted =+ muted || playerMuted || userPreferredVolume <= 0 || isInsideFreeze;const isPlayerBuffering = useBuffering();const initialPlaying = useRef(playing && !isPlayerBuffering);@@ -369,7 +372,7 @@ const AudioForPreviewAssertedShowing: React.FC<NewAudioForPreviewProps> = ({return (<RemotionAudiosrc={src}- muted={muted}+ muted={effectiveMuted}volume={volume}startFrom={trimBefore}endAt={trimAfter}diff --git a/packages/media/src/audio/audio-for-rendering.tsx b/packages/media/src/audio/audio-for-rendering.tsxindex a2b0fb0a7b..264896cb59 100644--- a/packages/media/src/audio/audio-for-rendering.tsx+++ b/packages/media/src/audio/audio-for-rendering.tsx@@ -44,6 +44,7 @@ export const AudioForRendering: React.FC<AudioProps> = ({const defaultLogLevel = Internals.useLogLevel();const logLevel = overriddenLogLevel ?? defaultLogLevel;const frame = useCurrentFrame();+ const isInsideFreeze = Internals.useIsInsideFreeze();const absoluteFrame = Internals.useTimelinePosition();const videoConfig = Internals.useUnsafeVideoConfig();@@ -102,7 +103,7 @@ export const AudioForRendering: React.FC<AudioProps> = ({return false;}- if (muted) {+ if (muted || isInsideFreeze) {return false;}@@ -280,6 +281,7 @@ export const AudioForRendering: React.FC<AudioProps> = ({loop,loopVolumeCurveBehavior,muted,+ isInsideFreeze,playbackRate,registerRenderAsset,src,@@ -305,7 +307,7 @@ export const AudioForRendering: React.FC<AudioProps> = ({<Html5Audiosrc={src}playbackRate={playbackRate}- muted={muted}+ muted={Boolean(muted || isInsideFreeze)}loop={loop}volume={volumeProp}delayRenderRetries={delayRenderRetries}diff --git a/packages/media/src/test/player-muted-video.test.tsx b/packages/media/src/test/player-muted-video.test.tsxindex 35e1771f12..69f1706762 100644--- a/packages/media/src/test/player-muted-video.test.tsx+++ b/packages/media/src/test/player-muted-video.test.tsx@@ -1,8 +1,9 @@-import {Player} from '@remotion/player';+import {Player, type PlayerRef} from '@remotion/player';import React from 'react';import {createRoot} from 'react-dom/client';import {Sequence} from 'remotion';import {expect, test} from 'vitest';+import {page} from 'vitest/browser';import {Video} from '../video/video';const waitFor = async (predicate: () => boolean) => {@@ -98,3 +99,51 @@ test('renders a negatively offset video inside a sequence', async () => {container.remove();}});++test('plays while a video with audio is frozen on a future frame', async () => {+ const container = document.createElement('div');+ document.body.appendChild(container);+ const playerRef = React.createRef<PlayerRef>();++ const FrozenVideoComposition: React.FC = () => {+ return (+ <Sequence freeze={150}>+ <Video src="/bigbuckbunny.mp4" />+ </Sequence>+ );+ };++ const root = createRoot(container);+ root.render(+ <Player+ ref={playerRef}+ acknowledgeRemotionLicense+ component={FrozenVideoComposition}+ compositionHeight={720}+ compositionWidth={1280}+ controls+ durationInFrames={300}+ fps={30}+ inputProps={{}}+ />,+ );++ try {+ await waitFor(() => {+ const renderedCanvas = container.querySelector('canvas');+ return (+ playerRef.current !== null &&+ renderedCanvas?.width === 1280 &&+ renderedCanvas.height === 720+ );+ });++ await page.getByRole('button', {name: 'Play'}).click();+ await waitFor(() => (playerRef.current?.getCurrentFrame() ?? 0) > 0);++ expect(playerRef.current?.getCurrentFrame()).toBeGreaterThan(0);+ } finally {+ root.unmount();+ container.remove();+ }+});diff --git a/packages/media/src/video/video-for-preview.tsx b/packages/media/src/video/video-for-preview.tsxindex 423d973c1e..e973e28993 100644--- a/packages/media/src/video/video-for-preview.tsx+++ b/packages/media/src/video/video-for-preview.tsx@@ -48,6 +48,7 @@ const {useEffectChainState,usePlaying,useBuffering,+ useIsInsideFreeze,} = Internals;type VideoForPreviewProps = NativeVideoProps & {@@ -191,7 +192,9 @@ const VideoForPreviewAssertedShowing: React.FC<const preloadedSrc = usePreload(src);// TODO: Consider Sequence hidden- const effectiveMuted = muted || playerMuted || userPreferredVolume <= 0;+ const isInsideFreeze = useIsInsideFreeze();+ const effectiveMuted =+ muted || playerMuted || userPreferredVolume <= 0 || isInsideFreeze;const isPlayerBuffering = useBuffering();const initialPlaying = useRef(playing && !isPlayerBuffering);@@ -531,7 +534,7 @@ const VideoForPreviewAssertedShowing: React.FC<src={src}style={actualStyle}className={className}- muted={muted}+ muted={effectiveMuted}volume={volume}trimAfter={trimAfter}trimBefore={trimBefore}diff --git a/packages/media/src/video/video-for-rendering.tsx b/packages/media/src/video/video-for-rendering.tsxindex 5530f3ccbf..93c6041eac 100644--- a/packages/media/src/video/video-for-rendering.tsx+++ b/packages/media/src/video/video-for-rendering.tsx@@ -102,6 +102,7 @@ export const VideoForRendering: React.FC<InnerVideoProps> = ({const audioContext = useContext(Internals.SharedAudioContext);const sampleRate = audioContext?.sampleRate ?? 48000;const frame = useCurrentFrame();+ const isInsideFreeze = Internals.useIsInsideFreeze();const absoluteFrame = Internals.useTimelinePosition();const {fps} = useVideoConfig();@@ -184,7 +185,7 @@ export const VideoForRendering: React.FC<InnerVideoProps> = ({return false;}- if (muted) {+ if (muted || isInsideFreeze) {return false;}@@ -434,6 +435,7 @@ export const VideoForRendering: React.FC<InnerVideoProps> = ({loop,loopVolumeCurveBehavior,muted,+ isInsideFreeze,onVideoFrame,playbackRate,registerRenderAsset,@@ -482,7 +484,7 @@ export const VideoForRendering: React.FC<InnerVideoProps> = ({{...props}src={src}playbackRate={playbackRate ?? 1}- muted={muted ?? false}+ muted={Boolean(muted || isInsideFreeze)}acceptableTimeShiftInSeconds={fallbackOffthreadVideoProps?.acceptableTimeShiftInSeconds}diff --git a/packages/player/src/Player.tsx b/packages/player/src/Player.tsxindex 5eb513d562..d363a7fcea 100644--- a/packages/player/src/Player.tsx+++ b/packages/player/src/Player.tsx@@ -428,6 +428,7 @@ const PlayerFn = <return {frame,isPlaying: readIsPlaying,+ isInsideFreeze: false,audioAndVideoTags,};}, [frame, readIsPlaying]);diff --git a/packages/player/src/Thumbnail.tsx b/packages/player/src/Thumbnail.tsxindex 7f74633d68..cd18f99633 100644--- a/packages/player/src/Thumbnail.tsx+++ b/packages/player/src/Thumbnail.tsx@@ -93,6 +93,7 @@ const ThumbnailFn = <const timelineState: TimelineContextValue = useMemo(() => {const value: TimelineContextValue = {isPlaying: () => false,+ isInsideFreeze: false,frame: {[PLAYER_COMP_ID]: frameToDisplay,},diff --git a/packages/test-utils/src/timeline-context.ts b/packages/test-utils/src/timeline-context.tsindex a1ddcdfe5a..04074c7332 100644--- a/packages/test-utils/src/timeline-context.ts+++ b/packages/test-utils/src/timeline-context.ts@@ -7,6 +7,7 @@ export const makeTimelineContext = (frame: number): TimelineContextValue => {[ID]: frame,},isPlaying: () => false,+ isInsideFreeze: false,audioAndVideoTags: {current: []},};};