remotion
Version:
Make videos programmatically
18 lines (17 loc) • 731 B
TypeScript
import type { RefObject } from 'react';
import type { VolumeProp } from './volume-prop.js';
export declare const useMediaInTimeline: ({ volume, mediaVolume, mediaRef, src, mediaType, playbackRate, displayName, id, stack, showInTimeline, premountDisplay, onAutoPlayError, isPremounting, }: {
volume: VolumeProp | undefined;
mediaVolume: number;
mediaRef: RefObject<HTMLAudioElement | HTMLVideoElement | null>;
src: string | undefined;
mediaType: "audio" | "video";
playbackRate: number;
displayName: string | null;
id: string;
stack: string | null;
showInTimeline: boolean;
premountDisplay: number | null;
onAutoPlayError: null | (() => void);
isPremounting: boolean;
}) => void;