mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 21:25:24 +03:00
Open to recordings with pre-buffer
This commit is contained in:
parent
8c610bea49
commit
a3dd129fac
@ -23,6 +23,7 @@ import useContextMenu from "@/hooks/use-contextmenu";
|
||||
import ActivityIndicator from "../indicators/activity-indicator";
|
||||
import { TimeRange } from "@/types/timeline";
|
||||
import { NoThumbSlider } from "../ui/slider";
|
||||
import { PREVIEW_PADDING } from "@/types/preview";
|
||||
|
||||
type PreviewPlayerProps = {
|
||||
review: ReviewSegment;
|
||||
@ -337,7 +338,6 @@ function PreviewContent({
|
||||
}
|
||||
}
|
||||
|
||||
const PREVIEW_PADDING = 16;
|
||||
type VideoPreviewProps = {
|
||||
relevantPreview: Preview;
|
||||
startTime: number;
|
||||
|
||||
@ -5,3 +5,6 @@ export type Preview = {
|
||||
start: number;
|
||||
end: number;
|
||||
};
|
||||
|
||||
export const PREVIEW_PADDING = 16;
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
|
||||
import { useTimelineUtils } from "@/hooks/use-timeline-utils";
|
||||
import { useScrollLockout } from "@/hooks/use-mouse-listener";
|
||||
import { FrigateConfig } from "@/types/frigateConfig";
|
||||
import { Preview } from "@/types/preview";
|
||||
import { PREVIEW_PADDING, Preview } from "@/types/preview";
|
||||
import {
|
||||
MotionData,
|
||||
ReviewFilter,
|
||||
@ -175,7 +175,7 @@ export default function EventView({
|
||||
} else {
|
||||
onOpenRecording({
|
||||
camera: review.camera,
|
||||
startTime: review.start_time,
|
||||
startTime: review.start_time - PREVIEW_PADDING,
|
||||
severity: review.severity,
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user