mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
Cleanup
This commit is contained in:
parent
9bcfb5a852
commit
842cba4245
@ -198,25 +198,10 @@ export default function DynamicVideoPlayer({
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [controller, recordings]);
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
/** the HLS endpoint returns the vod segments with the first
|
||||
* segment of the hour trimmed, meaning it will start at
|
||||
* the beginning of the hour, cutting off any difference
|
||||
* that the segment has.
|
||||
*/
|
||||
const inpointOffset = useMemo(() => {
|
||||
if (!recordingParams || !recordings || recordings?.length === 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return recordingParams.after - recordings[0].start_time;
|
||||
}, [recordingParams, recordings]);
|
||||
=======
|
||||
const inpointOffset = useMemo(
|
||||
() => calculateInpointOffset(recordingParams.after, (recordings || [])[0]),
|
||||
[recordingParams, recordings],
|
||||
);
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user