From e0297afe0f6409506c5099df7e9f2251e7d54ee8 Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Tue, 17 Jun 2025 10:12:45 +0200 Subject: [PATCH] Update video time update handling and refine seek bar input --- static/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index 3eba24b..54db23e 100644 --- a/static/index.html +++ b/static/index.html @@ -325,8 +325,8 @@ $(videoElement).on('play.currentVideo', updatePlayPauseButtonState); $(videoElement).on('pause.currentVideo', updatePlayPauseButtonState); $(videoElement).on('loadedmetadata.currentVideo', handleVideoLoadedMetadata); - $(videoElement).on('timeupdate.currentVideo', handleVideoTimeUpdate); $(videoElement).on('ended.currentVideo', exitVideoPlayback); + setInterval(handleVideoTimeUpdate, 1000/30); // --- Setup Fullscreen Change Listener (session-specific) --- $(document).off('fullscreenchange.videoPlayback webkitfullscreenchange.videoPlayback mozfullscreenchange.videoPlayback MSFullscreenChange.videoPlayback', handleFullscreenChange); @@ -351,7 +351,7 @@
- +