mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-09 06:55:28 +03:00
apply annotation offset to frigate+ submission frame time
This commit is contained in:
parent
043c746a8b
commit
3f33e8435a
@ -867,6 +867,7 @@ export function TrackingDetails({
|
|||||||
getZoneColor={getZoneColor}
|
getZoneColor={getZoneColor}
|
||||||
effectiveTime={effectiveTime}
|
effectiveTime={effectiveTime}
|
||||||
isTimelineActive={isWithinEventRange}
|
isTimelineActive={isWithinEventRange}
|
||||||
|
annotationOffset={annotationOffset}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@ -890,6 +891,7 @@ type LifecycleIconRowProps = {
|
|||||||
getZoneColor: (zoneName: string) => number[] | undefined;
|
getZoneColor: (zoneName: string) => number[] | undefined;
|
||||||
effectiveTime?: number;
|
effectiveTime?: number;
|
||||||
isTimelineActive?: boolean;
|
isTimelineActive?: boolean;
|
||||||
|
annotationOffset: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
function LifecycleIconRow({
|
function LifecycleIconRow({
|
||||||
@ -900,6 +902,7 @@ function LifecycleIconRow({
|
|||||||
getZoneColor,
|
getZoneColor,
|
||||||
effectiveTime,
|
effectiveTime,
|
||||||
isTimelineActive,
|
isTimelineActive,
|
||||||
|
annotationOffset,
|
||||||
}: LifecycleIconRowProps) {
|
}: LifecycleIconRowProps) {
|
||||||
const { t } = useTranslation(["views/explore", "components/player"]);
|
const { t } = useTranslation(["views/explore", "components/player"]);
|
||||||
const { data: config } = useSWR<FrigateConfig>("config");
|
const { data: config } = useSWR<FrigateConfig>("config");
|
||||||
@ -1206,7 +1209,7 @@ function LifecycleIconRow({
|
|||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
onSelect={async () => {
|
onSelect={async () => {
|
||||||
const resp = await axios.post(
|
const resp = await axios.post(
|
||||||
`/${item.camera}/plus/${item.timestamp}`,
|
`/${item.camera}/plus/${item.timestamp + annotationOffset / 1000}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (resp && resp.status == 200) {
|
if (resp && resp.status == 200) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user