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) => {