feat: remove onPlayState

Signed-off-by: Hanif Dwy Putra S <hanifdwyputrasembiring@gmail.com>
This commit is contained in:
Hanif Dwy Putra S
2025-08-30 08:24:47 +08:00
parent 9f0e425846
commit b7a645c241

View File

@@ -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) {