react-player
Version:
A React component for playing a variety of URLs, including file paths, Mux, YouTube, Vimeo, and Wistia
12 lines (11 loc) • 407 B
TypeScript
/// <reference types="react" />
import type { VideoElementProps } from './types.js';
export type PlayerEntry = {
key: string;
name: string;
canPlay: (src: string) => boolean;
canEnablePIP?: () => boolean;
player?: React.ComponentType<VideoElementProps> | React.LazyExoticComponent<React.ComponentType<VideoElementProps>>;
};
declare const Players: PlayerEntry[];
export default Players;