mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
Reduce buffer
This commit is contained in:
parent
a3dd129fac
commit
75eeb906a7
@ -1,3 +1,5 @@
|
|||||||
|
import { REVIEW_PADDING } from "./review";
|
||||||
|
|
||||||
export type Preview = {
|
export type Preview = {
|
||||||
camera: string;
|
camera: string;
|
||||||
src: string;
|
src: string;
|
||||||
@ -6,5 +8,4 @@ export type Preview = {
|
|||||||
end: number;
|
end: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const PREVIEW_PADDING = 16;
|
export const PREVIEW_PADDING = REVIEW_PADDING * 2;
|
||||||
|
|
||||||
|
|||||||
@ -48,3 +48,5 @@ export type MotionData = {
|
|||||||
audio?: number;
|
audio?: number;
|
||||||
camera: string;
|
camera: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const REVIEW_PADDING = 2;
|
||||||
|
|||||||
@ -9,9 +9,10 @@ import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
|
|||||||
import { useTimelineUtils } from "@/hooks/use-timeline-utils";
|
import { useTimelineUtils } from "@/hooks/use-timeline-utils";
|
||||||
import { useScrollLockout } from "@/hooks/use-mouse-listener";
|
import { useScrollLockout } from "@/hooks/use-mouse-listener";
|
||||||
import { FrigateConfig } from "@/types/frigateConfig";
|
import { FrigateConfig } from "@/types/frigateConfig";
|
||||||
import { PREVIEW_PADDING, Preview } from "@/types/preview";
|
import { Preview } from "@/types/preview";
|
||||||
import {
|
import {
|
||||||
MotionData,
|
MotionData,
|
||||||
|
REVIEW_PADDING,
|
||||||
ReviewFilter,
|
ReviewFilter,
|
||||||
ReviewSegment,
|
ReviewSegment,
|
||||||
ReviewSeverity,
|
ReviewSeverity,
|
||||||
@ -175,7 +176,7 @@ export default function EventView({
|
|||||||
} else {
|
} else {
|
||||||
onOpenRecording({
|
onOpenRecording({
|
||||||
camera: review.camera,
|
camera: review.camera,
|
||||||
startTime: review.start_time - PREVIEW_PADDING,
|
startTime: review.start_time - REVIEW_PADDING,
|
||||||
severity: review.severity,
|
severity: review.severity,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user