@masa-dev/react-signage
Version:
This is a react library for signage.
12 lines (11 loc) • 483 B
TypeScript
import { VideoHTMLAttributes } from "react";
import { MediaItemRefBase } from "./types";
export interface VideoRef extends MediaItemRefBase {
elementRef: React.RefObject<HTMLVideoElement | null>;
play: () => Promise<void>;
pause: () => void;
}
export declare const Video: import("react").ForwardRefExoticComponent<VideoHTMLAttributes<HTMLVideoElement> & {
muted: boolean | undefined;
useDbCache: boolean | undefined;
} & import("react").RefAttributes<VideoRef>>;