Skip to content

🎥 Make videos programmatically with React

Fix crossOrigin prop not being passed to VideoForPreview.

gdaunton372a12900218
diff --git a/packages/core/src/video/Video.tsx b/packages/core/src/video/Video.tsx
index 36fe5d6ff8..e7aa0a62f3 100644
--- a/packages/core/src/video/Video.tsx
+++ b/packages/core/src/video/Video.tsx
@@ -34,7 +34,6 @@ const VideoForwardingFunction: React.ForwardRefRenderFunction<
_remotionInternalNativeLoopPassed,
showInTimeline,
onAutoPlayError,
- crossOrigin,
...otherProps
} = props;
const {loop, _remotionDebugSeeking, ...propsOtherThanLoop} = props;
@@ -144,7 +143,6 @@ const VideoForwardingFunction: React.ForwardRefRenderFunction<
_remotionDebugSeeking={_remotionDebugSeeking ?? false}
showInTimeline={showInTimeline ?? true}
onAutoPlayError={onAutoPlayError ?? undefined}
- crossOrigin={crossOrigin}
/>
);
};
diff --git a/packages/core/src/video/VideoForPreview.tsx b/packages/core/src/video/VideoForPreview.tsx
index 181c094b89..b372b5c948 100644
--- a/packages/core/src/video/VideoForPreview.tsx
+++ b/packages/core/src/video/VideoForPreview.tsx
@@ -36,7 +36,7 @@ type VideoForPreviewProps = RemotionVideoProps & {
readonly _remotionDebugSeeking: boolean;
readonly showInTimeline: boolean;
readonly onVideoFrame: null | OnVideoFrame;
- readonly crossOrigin: '' | 'anonymous' | 'use-credentials' | undefined;
+ readonly crossOrigin?: '' | 'anonymous' | 'use-credentials';
};
const VideoForDevelopmentRefForwardingFunction: React.ForwardRefRenderFunction<