🎥 Make videos programmatically with React
import type React from 'react';
import type {ImageFit} from '../calculate-image-fit.js';
import type {EffectsProp, EffectsOutputSize} from '../effects/effect-types.js';
import type {
InteractiveBaseProps,
InteractiveCropProps,
InteractivePremountProps,
} from '../Interactive.js';
type CanvasImageSequenceProps = Omit<InteractiveBaseProps, 'playbackRate'> &
InteractiveCropProps &
InteractivePremountProps;
export type CanvasImageCanvasProps = Omit<
React.CanvasHTMLAttributes<HTMLCanvasElement>,
'children' | 'height' | 'onError' | 'width'
>;
export type CanvasImageProps = CanvasImageSequenceProps &
CanvasImageCanvasProps & {
readonly src: string;
readonly crossOrigin?: React.ImgHTMLAttributes<HTMLImageElement>['crossOrigin'];
readonly width?: number;
readonly height?: number;
readonly fit?: ImageFit;
readonly effects?: EffectsProp;
readonly effectsOutputSize?: EffectsOutputSize;
readonly className?: string;
readonly style?: React.CSSProperties;
readonly id?: string;
readonly onError?: (error: Error) => void;
readonly pauseWhenLoading?: boolean;
readonly maxRetries?: number;
readonly delayRenderRetries?: number;
readonly delayRenderTimeoutInMilliseconds?: number;
/**
* @deprecated For internal use only.
*/
readonly _remotionInternalDocumentationLink?: string;
/**
* @deprecated For internal use only.
*/
readonly _remotionInternalCropComponentName?: string;
};