react-all-player
Version:
react-all-player is a simple, lightweight, accessible and customizable React media player that supports modern browsers.
10 lines (9 loc) • 337 B
TypeScript
import * as React from 'react';
import { Source } from '../../types';
export interface YouTubePlayerProps {
source: Source;
autoPlay?: boolean;
muted?: boolean;
onReady?: () => void;
}
export declare const YouTubePlayer: React.ForwardRefExoticComponent<YouTubePlayerProps & React.RefAttributes<HTMLDivElement>>;