mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +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 { VideoResolutionType } from "@/types/live"; | ||||||
| import axios from "axios"; | import axios from "axios"; | ||||||
| import { cn } from "@/lib/utils"; | import { cn } from "@/lib/utils"; | ||||||
| import { getTimestampOffset } from "@/utils/dateUtil"; |  | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  * Dynamically switches between video playback and scrubbing preview player. |  * Dynamically switches between video playback and scrubbing preview player. | ||||||
| @ -148,14 +147,13 @@ export default function DynamicVideoPlayer({ | |||||||
| 
 | 
 | ||||||
|   // state of playback player
 |   // state of playback player
 | ||||||
| 
 | 
 | ||||||
|   const recordingParams = useMemo(() => { |   const recordingParams = useMemo( | ||||||
|     const timeRangeOffset = getTimestampOffset(timeRange.before); |     () => ({ | ||||||
| 
 |       before: timeRange.before, | ||||||
|     return { |       after: timeRange.after, | ||||||
|       before: timeRange.before + timeRangeOffset, |     }), | ||||||
|       after: timeRange.after + timeRangeOffset, |     [timeRange], | ||||||
|     }; |   ); | ||||||
|   }, [timeRange]); |  | ||||||
|   const { data: recordings } = useSWR<Recording[]>( |   const { data: recordings } = useSWR<Recording[]>( | ||||||
|     [`${camera}/recordings`, recordingParams], |     [`${camera}/recordings`, recordingParams], | ||||||
|     { revalidateOnFocus: false }, |     { revalidateOnFocus: false }, | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user