From d3d4e002fe37f4cdafdecb158ac2dc3a1d265e16 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Tue, 12 Dec 2023 11:10:16 +0200 Subject: [PATCH] fix playing other vid from playlist --- src/components/common/VideoPlayer.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/common/VideoPlayer.tsx b/src/components/common/VideoPlayer.tsx index 93feddc..d1a65be 100644 --- a/src/components/common/VideoPlayer.tsx +++ b/src/components/common/VideoPlayer.tsx @@ -137,6 +137,17 @@ export const VideoPlayer: React.FC = ({ } } + useEffect(()=> { + reDownload.current = false + setIsLoading(false) + setCanPlay(false) + setProgress(0) + setPlaying(false) + setStartPlay(false) + isFetchingProperties.current =false + status.current = null + }, [identifier]) + const refetch = React.useCallback(async () => {