Detail Stream tweaks (#20533)
CI / ARM Extra Build (push) Blocked by required conditions
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions

This commit is contained in:
Josh Hawkins
2025-10-16 14:15:23 -06:00
committed by GitHub
parent 9599450cff
commit 60789f7096
6 changed files with 76 additions and 57 deletions
+6 -5
View File
@@ -283,15 +283,14 @@ export function RecordingView({
]);
const manuallySetCurrentTime = useCallback(
(time: number) => {
(time: number, play: boolean = false) => {
if (!currentTimeRange) {
return;
}
setCurrentTime(time);
if (currentTimeRange.after <= time && currentTimeRange.before >= time) {
mainControllerRef.current?.seekToTimestamp(time, true);
mainControllerRef.current?.seekToTimestamp(time, play);
} else {
updateSelectedSegment(time, true);
}
@@ -310,7 +309,7 @@ export function RecordingView({
} else {
updateSelectedSegment(currentTime, true);
}
} else if (playerTime != currentTime) {
} else if (playerTime != currentTime && timelineType != "detail") {
mainControllerRef.current?.play();
}
}
@@ -1006,7 +1005,9 @@ function Timeline({
) : timelineType == "detail" ? (
<DetailStream
currentTime={currentTime}
onSeek={(timestamp) => manuallySetCurrentTime(timestamp, true)}
onSeek={(timestamp, play) =>
manuallySetCurrentTime(timestamp, play ?? true)
}
reviewItems={mainCameraReviewItems}
/>
) : (