From c9c4a953f41cc114212d7a9c774472008305c6f9 Mon Sep 17 00:00:00 2001 From: Suman991 Date: Fri, 30 Jan 2026 13:55:54 +0530 Subject: [PATCH] Log changes with Progress bar chages --- components/video-player-section.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/video-player-section.tsx b/components/video-player-section.tsx index 89e76ed..6439cd9 100644 --- a/components/video-player-section.tsx +++ b/components/video-player-section.tsx @@ -473,6 +473,9 @@ export default function VideoPlayerSection({ data, videoId, videoFile, detection setLastDetectedLng(gpsCoords.lng) console.log(`[Seek] Updated GPS: ${gpsCoords.lat}, ${gpsCoords.lng} at frame ${frame}`) } + + // Add detection log for the seeked frame + addDetectionLog(frame, detections) } // Draw bounding boxes for seeked frame @@ -496,7 +499,7 @@ export default function VideoPlayerSection({ data, videoId, videoFile, detection video.removeEventListener("seeked", handleSeeked) video.removeEventListener("play", handlePlay) } - }, [data.video_info.fps, drawBoundingBoxes, isPothole]) + }, [data.video_info.fps, drawBoundingBoxes, isPothole, addDetectionLog]) return (