react-player
Version:
A React component for playing a variety of URLs, including file paths, Mux, YouTube, Vimeo, and Wistia
12 lines (11 loc) • 559 B
TypeScript
import React from 'react';
import type { ReactPlayerProps } from './types.js';
import type { PlayerEntry } from './players.js';
type ReactPlayer = React.ForwardRefExoticComponent<Omit<ReactPlayerProps, 'ref'> & React.RefAttributes<HTMLVideoElement>> & Partial<{
addCustomPlayer: (player: PlayerEntry) => void;
removeCustomPlayers: () => void;
canPlay: (src: string) => boolean;
canEnablePIP: (src: string) => boolean;
}>;
export declare const createReactPlayer: (players: PlayerEntry[], playerFallback: PlayerEntry) => ReactPlayer;
export {};