Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' of https://github.com/remotion-dev/remotion into copilot/fix-30f997e6-8b98-4121-bfc6-d3d1b9425d6c

Igor Samokhovetsfae982aeb470
diff --cc packages/core/src/audio/AudioForPreview.tsx
index 7898bdf85d,4101a2437c..b2362a1520
--- a/packages/core/src/audio/AudioForPreview.tsx
+++ b/packages/core/src/audio/AudioForPreview.tsx
@@@ -185,17 -185,11 +184,8 @@@ const AudioForDevelopmentForwardRefFunc
id: timelineId,
stack: _remotionInternalStack,
showInTimeline,
- premountDisplay: null,
- postmountDisplay: null,
- });
-
- useMediaTag({
- mediaRef: audioRef,
- id: timelineId,
- mediaType: 'audio',
- onAutoPlayError: null,
- isPremounting: Boolean(sequenceContext?.premounting),
- isPostmounting: Boolean(sequenceContext?.postmounting),
+ premountDisplay: sequenceContext?.premountDisplay ?? null,
+ postmountDisplay: sequenceContext?.postmountDisplay ?? null,
- onAutoPlayError: null,
- isPremounting: Boolean(sequenceContext?.premounting),
- isPostmounting: Boolean(sequenceContext?.postmounting),
});
// putting playback before useVolume
diff --cc packages/core/src/video/VideoForPreview.tsx
index 68ce9d1489,c26fe6e39b..27110de87b
--- a/packages/core/src/video/VideoForPreview.tsx
+++ b/packages/core/src/video/VideoForPreview.tsx
@@@ -145,17 -145,11 +144,8 @@@ const VideoForDevelopmentRefForwardingF
id: timelineId,
stack: _remotionInternalStack,
showInTimeline,
- premountDisplay: null,
- postmountDisplay: null,
- });
-
- useMediaTag({
- mediaRef: videoRef,
- id: timelineId,
- mediaType: 'video',
- onAutoPlayError: onAutoPlayError ?? null,
- isPremounting: Boolean(parentSequence?.premounting),
- isPostmounting: Boolean(parentSequence?.postmounting),
+ premountDisplay: parentSequence?.premountDisplay ?? null,
+ postmountDisplay: parentSequence?.postmountDisplay ?? null,
- onAutoPlayError: onAutoPlayError ?? null,
- isPremounting: Boolean(parentSequence?.premounting),
- isPostmounting: Boolean(parentSequence?.postmounting),
});
// putting playback before useVolume