mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 17:12:16 +03:00
Improve review segmentation behavior (#19850)
* Refactor active objects to class * Keep segment going when detection is newer than end of alert * Cleanup logic * Fix * Cleanup ending * Adjust timing * Improve detection saving * Don't have padding at end for in progress reviews * Add review config for cutoff times
This commit is contained in:
@@ -315,9 +315,9 @@ export function InProgressPreview({
|
||||
const apiHost = useApiHost();
|
||||
const sliderRef = useRef<HTMLDivElement | null>(null);
|
||||
const { data: previewFrames } = useSWR<string[]>(
|
||||
`preview/${camera}/start/${Math.floor(startTime) - PREVIEW_PADDING}/end/${
|
||||
Math.ceil(endTime ?? timeRange.before) + PREVIEW_PADDING
|
||||
}/frames`,
|
||||
`preview/${camera}/start/${Math.floor(startTime) - PREVIEW_PADDING}/end/${Math.ceil(
|
||||
endTime ?? timeRange.before,
|
||||
)}/frames`,
|
||||
{ revalidateOnFocus: false },
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user