remotion
Version:
Make videos programmatically
10 lines (9 loc) • 385 B
TypeScript
import type { RefObject } from 'react';
export declare const useMediaTag: ({ mediaRef, id, mediaType, onAutoPlayError, isPremounting, isPostmounting, }: {
mediaRef: RefObject<HTMLAudioElement | HTMLVideoElement | null>;
id: string;
mediaType: "audio" | "video";
onAutoPlayError: null | (() => void);
isPremounting: boolean;
isPostmounting: boolean;
}) => void;