Skip to content

🎥 Make videos programmatically with React

fix offthreadvideo imageFormat props propagation

Jonny Burger1b0fd1b8b1c4
diff --git a/packages/core/src/video/OffthreadVideo.tsx b/packages/core/src/video/OffthreadVideo.tsx
index 09f349a3ff..a286aecabf 100644
--- a/packages/core/src/video/OffthreadVideo.tsx
+++ b/packages/core/src/video/OffthreadVideo.tsx
@@ -15,7 +15,9 @@ import {VideoForDevelopment} from './VideoForDevelopment.js';
export const OffthreadVideo: React.FC<
Omit<OffthreadVideoProps & RemotionMainVideoProps, 'loop'>
> = (props) => {
- const {startFrom, endAt, imageFormat, ...otherProps} = props;
+ // Should only destruct `startFrom` and `endAt` from props,
+ // rest gets drilled down
+ const {startFrom, endAt, ...otherProps} = props;
const environment = useRemotionEnvironment();
const onDuration = useCallback(() => undefined, []);
@@ -49,9 +51,7 @@ export const OffthreadVideo: React.FC<
validateOffthreadVideoImageFormat(props.imageFormat);
if (environment === 'rendering') {
- return (
- <OffthreadVideoForRendering imageFormat={imageFormat} {...otherProps} />
- );
+ return <OffthreadVideoForRendering {...otherProps} />;
}
return (