|
|
|
@ -363,8 +363,8 @@ export const useVideoPlayer = ({ |
|
|
|
}, [isLive, chaptersProps[0].startOffsetMs]) |
|
|
|
}, [isLive, chaptersProps[0].startOffsetMs]) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if (((isLive || chapters[0].duration === chaptersProps[0].duration) |
|
|
|
if (((isLive || Boolean(Math.round((chapters[0].duration / chaptersProps[0].duration)))) |
|
|
|
&& chapters[0]?.endOffsetMs === chaptersProps[0]?.endOffsetMs |
|
|
|
&& Boolean(Math.round(chapters[0]?.endOffsetMs / chaptersProps[0]?.endOffsetMs)) |
|
|
|
&& chapters[0]?.url.match(regURL)?.[0] === chaptersProps[0]?.url.match(regURL)?.[0]) |
|
|
|
&& chapters[0]?.url.match(regURL)?.[0] === chaptersProps[0]?.url.match(regURL)?.[0]) |
|
|
|
|| (isEmpty(chapters) || isEmpty(chaptersProps))) return |
|
|
|
|| (isEmpty(chapters) || isEmpty(chaptersProps))) return |
|
|
|
|
|
|
|
|
|
|
|
|