From a9209157af64a48f4a26bb4e826c5ea20d99d955 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 21 May 2024 03:11:57 +0530 Subject: [PATCH] Use const --- web/src/components/player/HlsVideoPlayer.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/components/player/HlsVideoPlayer.tsx b/web/src/components/player/HlsVideoPlayer.tsx index b90495652..92834cd00 100644 --- a/web/src/components/player/HlsVideoPlayer.tsx +++ b/web/src/components/player/HlsVideoPlayer.tsx @@ -17,6 +17,7 @@ import { toast } from "sonner"; import { useOverlayState } from "@/hooks/use-overlay-state"; import { usePersistence } from "@/hooks/use-persistence"; import { cn } from "@/lib/utils"; +import { ASPECT_VERTICAL_LAYOUT } from "@/types/record"; // Android native hls does not seek correctly const USE_NATIVE_HLS = !isAndroid; @@ -73,7 +74,8 @@ export default function HlsVideoPlayer({ } setTallCamera( - videoRef.current.videoWidth / videoRef.current.videoHeight < 1.5, + videoRef.current.videoWidth / videoRef.current.videoHeight < + ASPECT_VERTICAL_LAYOUT, ); } }, [videoRef, setFullResolution]);