UNPKG

vnetwork-player

Version:

A React component custom player support video m3u8, mp4

20 lines (19 loc) 487 B
import { HTMLProps } from "react"; export interface Subtitle { url: string; lang: string; } export interface Source { url: string; label: string; } export interface PlayerProps extends HTMLProps<HTMLVideoElement> { source: string | Source[]; className?: string; poster?: string; color?: string; subtitle?: Subtitle[] | undefined; playerRef?: React.MutableRefObject<HTMLVideoElement | null>; live?: boolean; Hls?: any; }