Skip to content

🎥 Make videos programmatically with React

`remotion`: Don't pass through `delayRenderTimeoutInMilliseconds` and `delayRenderRetries` to DOM

Jonny Burger24d230c00b26
diff --git a/packages/core/src/video/OffthreadVideo.tsx b/packages/core/src/video/OffthreadVideo.tsx
index 4aa87beb76..493498a29e 100644
--- a/packages/core/src/video/OffthreadVideo.tsx
+++ b/packages/core/src/video/OffthreadVideo.tsx
@@ -75,7 +75,9 @@ export const OffthreadVideo: React.FC<OffthreadVideoProps> = (props) => {
onAutoPlayError,
onVideoFrame,
crossOrigin,
- ...withoutTransparent
+ delayRenderRetries,
+ delayRenderTimeoutInMilliseconds,
+ ...propsForPreview
} = otherProps;
return (
@@ -90,7 +92,7 @@ export const OffthreadVideo: React.FC<OffthreadVideoProps> = (props) => {
onAutoPlayError={onAutoPlayError ?? undefined}
onVideoFrame={onVideoFrame ?? null}
crossOrigin={crossOrigin}
- {...withoutTransparent}
+ {...propsForPreview}
/>
);
};
diff --git a/packages/example-without-zod/src/MyComposition.tsx b/packages/example-without-zod/src/MyComposition.tsx
index b0d1fe1be4..9940f6b520 100644
--- a/packages/example-without-zod/src/MyComposition.tsx
+++ b/packages/example-without-zod/src/MyComposition.tsx
@@ -1,3 +1,10 @@
+import {OffthreadVideo} from 'remotion';
+
export const MyComposition = () => {
- return null;
+ return (
+ <OffthreadVideo
+ src="https://www.w3schools.com/html"
+ delayRenderRetries={2}
+ />
+ );
};