mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 13:15:25 +03:00
Fixup
This commit is contained in:
parent
39ca997c4c
commit
abacef9cf4
@ -616,6 +616,8 @@ function MotionReview({
|
|||||||
[selectedRangeIdx, timeRangeSegments],
|
[selectedRangeIdx, timeRangeSegments],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const [scrubbing, setScrubbing] = useState(false);
|
||||||
|
|
||||||
// move to next clip
|
// move to next clip
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -670,6 +672,7 @@ function MotionReview({
|
|||||||
timeRange={currentTimeRange}
|
timeRange={currentTimeRange}
|
||||||
startTime={startTime}
|
startTime={startTime}
|
||||||
cameraPreviews={relevantPreviews || []}
|
cameraPreviews={relevantPreviews || []}
|
||||||
|
isScrubbing={scrubbing}
|
||||||
onControllerReady={(controller) => {
|
onControllerReady={(controller) => {
|
||||||
videoPlayersRef.current[camera.name] = controller;
|
videoPlayersRef.current[camera.name] = controller;
|
||||||
}}
|
}}
|
||||||
@ -694,6 +697,7 @@ function MotionReview({
|
|||||||
motion_events={motionData ?? []}
|
motion_events={motionData ?? []}
|
||||||
severityType="significant_motion"
|
severityType="significant_motion"
|
||||||
contentRef={contentRef}
|
contentRef={contentRef}
|
||||||
|
onHandlebarDraggingChange={(scrubbing) => setScrubbing(scrubbing)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@ -288,6 +288,7 @@ export function RecordingView({
|
|||||||
timeRange={currentTimeRange}
|
timeRange={currentTimeRange}
|
||||||
cameraPreviews={allPreviews ?? []}
|
cameraPreviews={allPreviews ?? []}
|
||||||
startTime={startTime}
|
startTime={startTime}
|
||||||
|
isScrubbing={scrubbing}
|
||||||
onControllerReady={(controller) => {
|
onControllerReady={(controller) => {
|
||||||
previewRefs.current[cam] = controller;
|
previewRefs.current[cam] = controller;
|
||||||
controller.scrubToTimestamp(startTime);
|
controller.scrubToTimestamp(startTime);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user