diff --git a/src/components/video/VideoPlayer.tsx b/src/components/video/VideoPlayer.tsx index c442f6e5..8857d9fa 100644 --- a/src/components/video/VideoPlayer.tsx +++ b/src/components/video/VideoPlayer.tsx @@ -2,14 +2,23 @@ import { forwardRef, useContext, useRef } from "react"; import { VideoPlayerContext, VideoPlayerContextProvider } from "./VideoContext"; interface VideoPlayerProps { + autoPlay?: boolean; children?: React.ReactNode; } -const VideoPlayerInternals = forwardRef((_, ref) => { +const VideoPlayerInternals = forwardRef< + HTMLVideoElement, + { autoPlay: boolean } +>((props, ref) => { const video = useContext(VideoPlayerContext); return ( -