Skip to content

🎥 Make videos programmatically with React

fix

Patric Salvisberg72c34fd22936
diff --git a/packages/core/src/video/props.ts b/packages/core/src/video/props.ts
index 78ffce3024..8a597112c5 100644
--- a/packages/core/src/video/props.ts
+++ b/packages/core/src/video/props.ts
@@ -1,8 +1,6 @@
import type React from 'react';
import type {VolumeProp} from '../volume-prop.js';
-type ImageFormat = 'PNG |JPEG';
-
export type RemotionMainVideoProps = {
startFrom?: number;
endAt?: number;
@@ -28,18 +26,15 @@ type DeprecatedOffthreadVideoProps = {
imageFormat: never;
};
-export type OffthreadVideoProps = Omit<
- {
- src: string;
- className?: string;
- style?: React.CSSProperties;
- volume?: VolumeProp;
- playbackRate?: number;
- muted?: boolean;
- onError?: React.ReactEventHandler<HTMLVideoElement | HTMLImageElement>;
- acceptableTimeShiftInSeconds?: number;
- allowAmplificationDuringRender?: boolean;
- transparent?: boolean;
- } & DeprecatedOffthreadVideoProps,
- ImageFormat
->;
+export type OffthreadVideoProps = {
+ src: string;
+ className?: string;
+ style?: React.CSSProperties;
+ volume?: VolumeProp;
+ playbackRate?: number;
+ muted?: boolean;
+ onError?: React.ReactEventHandler<HTMLVideoElement | HTMLImageElement>;
+ acceptableTimeShiftInSeconds?: number;
+ allowAmplificationDuringRender?: boolean;
+ transparent?: boolean;
+} & DeprecatedOffthreadVideoProps;