🎥 Make videos programmatically with React
Fix "React does not recognize the `imageFormat` prop on a DOM element"
Jonny Burgercf984e182710
diff --git a/packages/core/src/video/OffthreadVideo.tsx b/packages/core/src/video/OffthreadVideo.tsxindex 0ccef5f9a7..09f349a3ff 100644--- a/packages/core/src/video/OffthreadVideo.tsx+++ b/packages/core/src/video/OffthreadVideo.tsx@@ -15,7 +15,7 @@ import {VideoForDevelopment} from './VideoForDevelopment.js';export const OffthreadVideo: React.FC<Omit<OffthreadVideoProps & RemotionMainVideoProps, 'loop'>> = (props) => {- const {startFrom, endAt, ...otherProps} = props;+ const {startFrom, endAt, imageFormat, ...otherProps} = props;const environment = useRemotionEnvironment();const onDuration = useCallback(() => undefined, []);@@ -49,7 +49,9 @@ export const OffthreadVideo: React.FC<validateOffthreadVideoImageFormat(props.imageFormat);if (environment === 'rendering') {- return <OffthreadVideoForRendering {...otherProps} />;+ return (+ <OffthreadVideoForRendering imageFormat={imageFormat} {...otherProps} />+ );}return (