From 59d12396c55bad05e4f75ce81c3456dec82e71f9 Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Thu, 11 Aug 2022 13:40:35 +0400 Subject: [PATCH] fix(#1701): stop replay after pause in episode --- src/features/StreamPlayer/hooks/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/features/StreamPlayer/hooks/index.tsx b/src/features/StreamPlayer/hooks/index.tsx index a55e1866..2b4c0ad5 100644 --- a/src/features/StreamPlayer/hooks/index.tsx +++ b/src/features/StreamPlayer/hooks/index.tsx @@ -299,10 +299,8 @@ export const useVideoPlayer = ({ useEffect(() => { if ((isLive - && chapters[0]?.isFullMatchChapter - && chaptersProps[0]?.isFullMatchChapter) + && chapters[0]?.endOffsetMs === chaptersProps[0]?.endOffsetMs) || isEmpty(chapters)) return - setPlayerState({ ...initialState, chapters: chaptersProps,