ensure still image is visible after switching stream type to none

This commit is contained in:
Josh Hawkins 2024-11-13 13:28:22 -06:00
parent 9e34041e10
commit d8891e2817

View File

@ -161,6 +161,12 @@ export default function LivePlayer({
}
}, [streamName]);
useEffect(() => {
if (showStillWithoutActivity && !autoLive) {
setLiveReady(false);
}
}, [showStillWithoutActivity, autoLive]);
const playerIsPlaying = useCallback(() => {
setLiveReady(true);
}, []);