From 55d391caa25dfca2bfd787bd436cdd40ab76e633 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 16 Oct 2025 13:56:15 -0500 Subject: [PATCH] fix pause and remove debug --- web/src/components/player/HlsVideoPlayer.tsx | 1 - .../components/player/dynamic/DynamicVideoController.ts | 1 - web/src/components/player/dynamic/DynamicVideoPlayer.tsx | 1 - web/src/views/recording/RecordingView.tsx | 7 +++---- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/web/src/components/player/HlsVideoPlayer.tsx b/web/src/components/player/HlsVideoPlayer.tsx index fd850255a..9cebd79c7 100644 --- a/web/src/components/player/HlsVideoPlayer.tsx +++ b/web/src/components/player/HlsVideoPlayer.tsx @@ -330,7 +330,6 @@ export default function HlsVideoPlayer({ className="absolute inset-0 z-10" onSeekToTime={(timestamp, play) => { if (onSeekToTime) { - console.log("object track overlay seek", timestamp, play); onSeekToTime(timestamp, play); } }} diff --git a/web/src/components/player/dynamic/DynamicVideoController.ts b/web/src/components/player/dynamic/DynamicVideoController.ts index c55b6b7b0..d4d7d4a2b 100644 --- a/web/src/components/player/dynamic/DynamicVideoController.ts +++ b/web/src/components/player/dynamic/DynamicVideoController.ts @@ -111,7 +111,6 @@ export class DynamicVideoController { if (play) { this.waitAndPlay(); } else { - console.log("called pause", Date.now()); this.playerController.pause(); } } else { diff --git a/web/src/components/player/dynamic/DynamicVideoPlayer.tsx b/web/src/components/player/dynamic/DynamicVideoPlayer.tsx index 472a99bbe..80f8e6dbf 100644 --- a/web/src/components/player/dynamic/DynamicVideoPlayer.tsx +++ b/web/src/components/player/dynamic/DynamicVideoPlayer.tsx @@ -269,7 +269,6 @@ export default function DynamicVideoPlayer({ onClipEnded={onValidateClipEnd} onSeekToTime={(timestamp, play) => { if (onSeekToTime) { - console.log("hls player seek", timestamp, play); onSeekToTime(timestamp, play); } }} diff --git a/web/src/views/recording/RecordingView.tsx b/web/src/views/recording/RecordingView.tsx index d6a071259..5d83eb81a 100644 --- a/web/src/views/recording/RecordingView.tsx +++ b/web/src/views/recording/RecordingView.tsx @@ -287,7 +287,6 @@ export function RecordingView({ if (!currentTimeRange) { return; } - console.log("manually set time", time, play); setCurrentTime(time); if (currentTimeRange.after <= time && currentTimeRange.before >= time) { @@ -310,7 +309,7 @@ export function RecordingView({ } else { updateSelectedSegment(currentTime, true); } - } else if (playerTime != currentTime) { + } else if (playerTime != currentTime && timelineType != "detail") { mainControllerRef.current?.play(); } } @@ -740,12 +739,12 @@ export function RecordingView({ : Math.max(1, getCameraAspect(mainCamera) ?? 0), }} > - {isDesktop && ( + {/* {isDesktop && ( - )} + )} */}