Skip to content

Commit

Permalink
Use const
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed May 20, 2024
1 parent fd9c186 commit a920915
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/components/player/HlsVideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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]);
Expand Down

0 comments on commit a920915

Please sign in to comment.