UNPKG

@brizy/ui

Version:
25 lines (24 loc) 742 B
import { ReactElement } from "react"; interface SourceProps { src: string; type: string; } export interface Props { url: string | string[] | SourceProps[] | MediaStream; controls?: boolean; thumbnail?: string; volume?: number; muted?: boolean; width?: string; height?: string; playing?: boolean; loop?: boolean; onReady?: VoidFunction; onStart?: VoidFunction; onPlay?: VoidFunction; onPause?: VoidFunction; onError?: VoidFunction; onThumbnailClick?: VoidFunction; } export declare const VideoPlayer: ({ url, controls, thumbnail, volume, muted, width, height, playing, loop, onReady, onStart, onPause, onPlay, onError, onThumbnailClick, }: Props) => ReactElement; export {};