mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-09 23:15:28 +03:00
Compare commits
No commits in common. "5c56b755e7599391aaf629c5c76b7d43b00ac1bc" and "ea0f4b6a0fd31ce1b39604f21eac6d91781f118f" have entirely different histories.
5c56b755e7
...
ea0f4b6a0f
@ -15,7 +15,7 @@ TRIGGER_DIR = f"{CLIPS_DIR}/triggers"
|
|||||||
BIRDSEYE_PIPE = "/tmp/cache/birdseye"
|
BIRDSEYE_PIPE = "/tmp/cache/birdseye"
|
||||||
CACHE_DIR = "/tmp/cache"
|
CACHE_DIR = "/tmp/cache"
|
||||||
REPLAY_CAMERA_PREFIX = "_replay_"
|
REPLAY_CAMERA_PREFIX = "_replay_"
|
||||||
REPLAY_DIR = os.path.join(CLIPS_DIR, "replay")
|
REPLAY_DIR = os.path.join(CACHE_DIR, "replay")
|
||||||
PLUS_ENV_VAR = "PLUS_API_KEY"
|
PLUS_ENV_VAR = "PLUS_API_KEY"
|
||||||
PLUS_API_HOST = "https://api.frigate.video"
|
PLUS_API_HOST = "https://api.frigate.video"
|
||||||
|
|
||||||
|
|||||||
@ -391,8 +391,10 @@ export default function MobileReviewSettingsDrawer({
|
|||||||
className="flex w-full items-center justify-center gap-2"
|
className="flex w-full items-center justify-center gap-2"
|
||||||
aria-label={t("title", { ns: "views/replay" })}
|
aria-label={t("title", { ns: "views/replay" })}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
const now = new Date(latestTime * 1000);
|
||||||
|
now.setHours(now.getHours() - 1);
|
||||||
setDebugReplayRange({
|
setDebugReplayRange({
|
||||||
after: latestTime - 60,
|
after: now.getTime() / 1000,
|
||||||
before: latestTime,
|
before: latestTime,
|
||||||
});
|
});
|
||||||
setSelectedReplayOption("1");
|
setSelectedReplayOption("1");
|
||||||
@ -539,9 +541,11 @@ export default function MobileReviewSettingsDrawer({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const minutes = parseInt(option, 10);
|
const hours = parseInt(option);
|
||||||
const end = latestTime;
|
const end = latestTime;
|
||||||
setDebugReplayRange({ after: end - minutes * 60, before: end });
|
const now = new Date(end * 1000);
|
||||||
|
now.setHours(now.getHours() - hours);
|
||||||
|
setDebugReplayRange({ after: now.getTime() / 1000, before: end });
|
||||||
};
|
};
|
||||||
|
|
||||||
content = (
|
content = (
|
||||||
|
|||||||
@ -396,6 +396,7 @@ export default function HlsVideoPlayer({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ObjectTrackOverlay
|
<ObjectTrackOverlay
|
||||||
|
key={`overlay-${currentTime}`}
|
||||||
camera={camera}
|
camera={camera}
|
||||||
showBoundingBoxes={!isPlaying}
|
showBoundingBoxes={!isPlaying}
|
||||||
currentTime={currentTime}
|
currentTime={currentTime}
|
||||||
|
|||||||
@ -728,8 +728,10 @@ export function RecordingView({
|
|||||||
setShareTimestampOpen(true);
|
setShareTimestampOpen(true);
|
||||||
}}
|
}}
|
||||||
onDebugReplayClick={() => {
|
onDebugReplayClick={() => {
|
||||||
|
const now = new Date(timeRange.before * 1000);
|
||||||
|
now.setHours(now.getHours() - 1);
|
||||||
setDebugReplayRange({
|
setDebugReplayRange({
|
||||||
after: timeRange.before - 60,
|
after: now.getTime() / 1000,
|
||||||
before: timeRange.before,
|
before: timeRange.before,
|
||||||
});
|
});
|
||||||
setDebugReplayMode("select");
|
setDebugReplayMode("select");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user