mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-03-13 09:20:13 +00:00
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
Block a user