mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
Use const
This commit is contained in:
parent
fd9c18658d
commit
a9209157af
@ -17,6 +17,7 @@ import { toast } from "sonner";
|
|||||||
import { useOverlayState } from "@/hooks/use-overlay-state";
|
import { useOverlayState } from "@/hooks/use-overlay-state";
|
||||||
import { usePersistence } from "@/hooks/use-persistence";
|
import { usePersistence } from "@/hooks/use-persistence";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
import { ASPECT_VERTICAL_LAYOUT } from "@/types/record";
|
||||||
|
|
||||||
// Android native hls does not seek correctly
|
// Android native hls does not seek correctly
|
||||||
const USE_NATIVE_HLS = !isAndroid;
|
const USE_NATIVE_HLS = !isAndroid;
|
||||||
@ -73,7 +74,8 @@ export default function HlsVideoPlayer({
|
|||||||
}
|
}
|
||||||
|
|
||||||
setTallCamera(
|
setTallCamera(
|
||||||
videoRef.current.videoWidth / videoRef.current.videoHeight < 1.5,
|
videoRef.current.videoWidth / videoRef.current.videoHeight <
|
||||||
|
ASPECT_VERTICAL_LAYOUT,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}, [videoRef, setFullResolution]);
|
}, [videoRef, setFullResolution]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user