diff --git a/src/components/video/VideoContext.tsx b/src/components/video/VideoContext.tsx index bc1bedea..bf8d4e95 100644 --- a/src/components/video/VideoContext.tsx +++ b/src/components/video/VideoContext.tsx @@ -53,8 +53,9 @@ export const VideoPlayerDispatchContext = createContext< export function VideoPlayerContextProvider(props: { children: React.ReactNode; player: MutableRefObject; + wrapper: MutableRefObject; }) { - const { playerState } = useVideoPlayer(props.player); + const { playerState } = useVideoPlayer(props.player, props.wrapper); const [videoData, dispatch] = useReducer( videoPlayerContextReducer, initial diff --git a/src/components/video/VideoPlayer.tsx b/src/components/video/VideoPlayer.tsx index d1b7f341..1dddbb1f 100644 --- a/src/components/video/VideoPlayer.tsx +++ b/src/components/video/VideoPlayer.tsx @@ -9,7 +9,7 @@ const VideoPlayerInternals = forwardRef((_, ref) => { const video = useContext(VideoPlayerContext); return ( -