disable onPause for progress gt 95%
This commit is contained in:
parent
a092744958
commit
a7d11f53a8
|
|
@ -346,7 +346,7 @@ const VideoPlayer = ({
|
|||
onPause={async (videoTag: VideoTag) => {
|
||||
const currentTime = Number(videoTag.currentTarget.currentTime);
|
||||
|
||||
if (currentTime < 10) return;
|
||||
if (currentTime < 10 || currentTime > duration * 0.95) return;
|
||||
|
||||
await updateVideoProgressById({
|
||||
youtubeId: videoId,
|
||||
|
|
|
|||
Loading…
Reference in New Issue