Quick fix

This commit is contained in:
Nicolas Mowen 2024-05-29 06:45:42 -06:00
parent f938d790bc
commit 9060fd570c
2 changed files with 3 additions and 2 deletions

View File

@ -249,7 +249,7 @@ export default function LivePlayer({
</div>
<div className="absolute right-2 top-2">
{!offline && activeMotion && (
{autoLive && !offline && activeMotion && (
<MdCircle className="mr-2 size-2 animate-pulse text-danger shadow-danger drop-shadow-md" />
)}
{offline && (

View File

@ -93,7 +93,7 @@ export default function LiveDashboardView({
// camera live views
const [autoLiveView] = usePersistence("autoLiveView");
const [autoLiveView] = usePersistence("autoLiveView", true);
const [windowVisible, setWindowVisible] = useState(true);
const visibilityListener = useCallback(() => {
setWindowVisible(document.visibilityState == "visible");
@ -263,6 +263,7 @@ export default function LiveDashboardView({
}
cameraConfig={camera}
preferredLiveMode={isSafari ? "webrtc" : "mse"}
autoLive={autoLiveView}
onClick={() => onSelectCamera(camera.name)}
/>
);