import { MWMediaStream } from "providers"; import { useRef } from "react"; export interface VideoPlayerProps { source: MWMediaStream; onProgress?: (event: ProgressEvent) => void; } export function VideoPlayer(props: VideoPlayerProps) { const videoRef = useRef(null); const mustUseHls = props.source.type === "m3u8"; return ( ); }