From b4d214e3acb1e3248715d5b6797c08983b8b0b3a Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 30 Dec 2025 08:11:23 -0700 Subject: [PATCH] Improve handling of automatic playback for recordings --- web/src/views/recording/RecordingView.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/web/src/views/recording/RecordingView.tsx b/web/src/views/recording/RecordingView.tsx index 839186d8e..b0dde285a 100644 --- a/web/src/views/recording/RecordingView.tsx +++ b/web/src/views/recording/RecordingView.tsx @@ -309,10 +309,18 @@ export function RecordingView({ currentTimeRange.after <= currentTime && currentTimeRange.before >= currentTime ) { - mainControllerRef.current?.seekToTimestamp( - currentTime, - mainControllerRef.current.isPlaying(), - ); + if (mainControllerRef.current != undefined) { + let shouldPlayback = true; + + if (timelineType == "detail") { + shouldPlayback = mainControllerRef.current.isPlaying(); + } + + mainControllerRef.current.seekToTimestamp( + currentTime, + shouldPlayback, + ); + } } else { updateSelectedSegment(currentTime, true); }