@brizy/ui
Version:
React elements in Brizy style
25 lines (24 loc) • 742 B
TypeScript
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 {};