From 72897af3cd7f6bc4fa6223a6cf94d3a7e761e35b Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 27 May 2024 09:42:07 -0600 Subject: [PATCH] Fix case where go2rtc is not setup --- web/src/components/player/LivePlayer.tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx index 2939e9323..2cbd8921b 100644 --- a/web/src/components/player/LivePlayer.tsx +++ b/web/src/components/player/LivePlayer.tsx @@ -135,14 +135,18 @@ export default function LivePlayer({ ); } } else if (liveMode == "jsmpeg") { - player = ( - - ); + if (cameraActive) { + player = ( + + ); + } else { + player = null; + } } else { player = ; }