mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-05 19:51:57 +02:00
feat: remove onPlayState
Signed-off-by: Hanif Dwy Putra S <hanifdwyputrasembiring@gmail.com>
This commit is contained in:
@@ -39,7 +39,7 @@ const VideoPlayer = ({
|
||||
});
|
||||
}
|
||||
}
|
||||
}, [currentTime, isActive, isPlaying, onPlayStateChange]);
|
||||
}, [currentTime, isActive, isPlaying]);
|
||||
|
||||
useEffect(() => {
|
||||
const video = videoRef.current;
|
||||
@@ -64,7 +64,7 @@ const VideoPlayer = ({
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [isPlaying, isActive, currentTime, onPlayStateChange]);
|
||||
}, [isPlaying, isActive, currentTime]);
|
||||
|
||||
const handleTimeUpdate = () => {
|
||||
if (videoRef.current && isActive) {
|
||||
|
||||
Reference in New Issue
Block a user