From 9cbba8f95e917b3cfce5923b55962d8f33ef3388 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 17 Oct 2024 18:22:26 -0600 Subject: [PATCH] Typescript again --- src/Video.web.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Video.web.tsx b/src/Video.web.tsx index 9c1ab82a..da033b6b 100644 --- a/src/Video.web.tsx +++ b/src/Video.web.tsx @@ -41,7 +41,7 @@ const Video = forwardRef( ) => { const nativeRef = useRef(null); const shakaPlayerRef = useRef(null); - const [ currentSource, setCurrentSource ] = useState(null); + const [ currentSource, setCurrentSource ] = useState(null); const isSeeking = useRef(false); const seek = useCallback( @@ -250,6 +250,7 @@ const Video = forwardRef( if (source?.cropEnd) { shakaPlayerRef.current.configure({playRangeEnd: source?.cropEnd / 1000}) } + //@ts-ignore setCurrentSource(source); //@ts-ignore shakaPlayerRef.current.addEventListener("error", (event) => {