Skip to content

🎥 Make videos programmatically with React

Update OffthreadVideo.tsx

Jonny Burgeraa937afc457e
diff --git a/packages/core/src/video/OffthreadVideo.tsx b/packages/core/src/video/OffthreadVideo.tsx
index ae316ff4dc..c312ae8431 100644
--- a/packages/core/src/video/OffthreadVideo.tsx
+++ b/packages/core/src/video/OffthreadVideo.tsx
@@ -14,7 +14,7 @@ import {VideoForDevelopment} from './VideoForDevelopment.js';
export const OffthreadVideo: React.FC<
Omit<OffthreadVideoProps & RemotionMainVideoProps, 'loop'>
> = (props) => {
- const {startFrom, endAt, imageFormat, ...otherProps} = props;
+ const {startFrom, endAt, ...otherProps} = props;
const environment = useRemotionEnvironment();
const onDuration = useCallback(() => undefined, []);
@@ -53,9 +53,7 @@ export const OffthreadVideo: React.FC<
validateMediaProps(props, 'Video');
if (environment === 'rendering') {
- return (
- <OffthreadVideoForRendering imageFormat={imageFormat} {...otherProps} />
- );
+ return <OffthreadVideoForRendering {...otherProps} />;
}
return (