Fix seeking

This commit is contained in:
Nicolas Mowen 2025-05-19 09:01:54 -06:00
parent 842cba4245
commit 736a739723

View File

@ -230,7 +230,7 @@ export default function HlsVideoPlayer({
hotKeys={hotKeys}
onPlayPause={onPlayPause}
onSeek={(diff) => {
const currentTime = getVideoTime();
const currentTime = videoRef.current?.currentTime;
if (!videoRef.current || !currentTime) {
return;