mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Don't timeshift recordings (#11449)
This commit is contained in:
parent
6e39d55dd3
commit
7413810fa4
@ -12,7 +12,6 @@ import ActivityIndicator from "@/components/indicators/activity-indicator";
|
||||
import { VideoResolutionType } from "@/types/live";
|
||||
import axios from "axios";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { getTimestampOffset } from "@/utils/dateUtil";
|
||||
|
||||
/**
|
||||
* Dynamically switches between video playback and scrubbing preview player.
|
||||
@ -148,14 +147,13 @@ export default function DynamicVideoPlayer({
|
||||
|
||||
// state of playback player
|
||||
|
||||
const recordingParams = useMemo(() => {
|
||||
const timeRangeOffset = getTimestampOffset(timeRange.before);
|
||||
|
||||
return {
|
||||
before: timeRange.before + timeRangeOffset,
|
||||
after: timeRange.after + timeRangeOffset,
|
||||
};
|
||||
}, [timeRange]);
|
||||
const recordingParams = useMemo(
|
||||
() => ({
|
||||
before: timeRange.before,
|
||||
after: timeRange.after,
|
||||
}),
|
||||
[timeRange],
|
||||
);
|
||||
const { data: recordings } = useSWR<Recording[]>(
|
||||
[`${camera}/recordings`, recordingParams],
|
||||
{ revalidateOnFocus: false },
|
||||
|
Loading…
Reference in New Issue
Block a user