import { forwardRef, useContext, useRef } from "react";
import { VideoPlayerContext, VideoPlayerContextProvider } from "./VideoContext";
interface VideoPlayerProps {
autoPlay?: boolean;
children?: React.ReactNode;
}
const VideoPlayerInternals = forwardRef<
HTMLVideoElement,
{ autoPlay: boolean }
>((props, ref) => {
const video = useContext(VideoPlayerContext);
return (
);
});
export function VideoPlayer(props: VideoPlayerProps) {
const playerRef = useRef(null);
const playerWrapperRef = useRef(null);
return (
);
}