From d8891e2817e7c280d2b073ad17212f7412e898eb Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:28:22 -0600 Subject: [PATCH] ensure still image is visible after switching stream type to none --- web/src/components/player/LivePlayer.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx index a5ff127e0..858aa9c6f 100644 --- a/web/src/components/player/LivePlayer.tsx +++ b/web/src/components/player/LivePlayer.tsx @@ -161,6 +161,12 @@ export default function LivePlayer({ } }, [streamName]); + useEffect(() => { + if (showStillWithoutActivity && !autoLive) { + setLiveReady(false); + } + }, [showStillWithoutActivity, autoLive]); + const playerIsPlaying = useCallback(() => { setLiveReady(true); }, []);