This commit is contained in:
Nicolas Mowen 2024-03-17 18:39:57 -06:00
parent 39ca997c4c
commit abacef9cf4
2 changed files with 5 additions and 0 deletions

View File

@ -616,6 +616,8 @@ function MotionReview({
[selectedRangeIdx, timeRangeSegments],
);
const [scrubbing, setScrubbing] = useState(false);
// move to next clip
useEffect(() => {
@ -670,6 +672,7 @@ function MotionReview({
timeRange={currentTimeRange}
startTime={startTime}
cameraPreviews={relevantPreviews || []}
isScrubbing={scrubbing}
onControllerReady={(controller) => {
videoPlayersRef.current[camera.name] = controller;
}}
@ -694,6 +697,7 @@ function MotionReview({
motion_events={motionData ?? []}
severityType="significant_motion"
contentRef={contentRef}
onHandlebarDraggingChange={(scrubbing) => setScrubbing(scrubbing)}
/>
</div>
</>

View File

@ -288,6 +288,7 @@ export function RecordingView({
timeRange={currentTimeRange}
cameraPreviews={allPreviews ?? []}
startTime={startTime}
isScrubbing={scrubbing}
onControllerReady={(controller) => {
previewRefs.current[cam] = controller;
controller.scrubToTimestamp(startTime);