From dc7791c2459c47ad49f4dbfaba88fb05ad1aa74a Mon Sep 17 00:00:00 2001 From: Tom Wopat Date: Tue, 23 Sep 2025 23:50:06 -0400 Subject: [PATCH] feat: add fullscreen button --- ui/src/components/VideoOverlay.tsx | 32 ++++++++++++++++++++---------- ui/src/components/WebRTCVideo.tsx | 2 +- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/ui/src/components/VideoOverlay.tsx b/ui/src/components/VideoOverlay.tsx index 1c59e788..0b66da65 100644 --- a/ui/src/components/VideoOverlay.tsx +++ b/ui/src/components/VideoOverlay.tsx @@ -2,7 +2,7 @@ import React from "react"; import { ExclamationTriangleIcon } from "@heroicons/react/24/solid"; import { ArrowPathIcon, ArrowRightIcon } from "@heroicons/react/16/solid"; import { motion, AnimatePresence } from "framer-motion"; -import { LuPlay } from "react-icons/lu"; +import { LuMaximize, LuPlay } from "react-icons/lu"; import { BsMouseFill } from "react-icons/bs"; import { Button, LinkButton } from "@components/Button"; @@ -209,9 +209,10 @@ export function PeerConnectionDisconnectedOverlay({ interface HDMIErrorOverlayProps { readonly show: boolean; readonly hdmiState: string; + readonly requestFullscreen: () => void; } -export function HDMIErrorOverlay({ show, hdmiState }: HDMIErrorOverlayProps) { +export function HDMIErrorOverlay({ show, hdmiState, requestFullscreen }: HDMIErrorOverlayProps) { const isNoSignal = hdmiState === "no_signal"; const isOtherError = hdmiState === "no_lock" || hdmiState === "out_of_range"; @@ -247,14 +248,25 @@ export function HDMIErrorOverlay({ show, hdmiState }: HDMIErrorOverlayProps) { -
- +
+
+ +
+
+
diff --git a/ui/src/components/WebRTCVideo.tsx b/ui/src/components/WebRTCVideo.tsx index 489abddf..ee9144fe 100644 --- a/ui/src/components/WebRTCVideo.tsx +++ b/ui/src/components/WebRTCVideo.tsx @@ -544,7 +544,7 @@ export default function WebRTCVideo() { >
- + {