Fix auto live check for default dashboard and camera groups

Disabling the Automatic Live View switch in Settings should prevent streaming from occurring. Overriding any settings in a camera group will override the global setting. The check here incorrectly always returned false instead of undefined.
This commit is contained in:
Josh Hawkins 2025-06-01 07:17:05 -05:00
parent d914f5f3fd
commit d8afdc9fa2
3 changed files with 16 additions and 5 deletions

View File

@ -189,7 +189,12 @@ Frigate provides a dialog in the Camera Group Edit pane with several options for
:::note
The default dashboard ("All Cameras") will always use Smart Streaming and the first entry set in your `streams` configuration, if defined. Use a camera group if you want to change any of these settings from the defaults.
The default dashboard ("All Cameras") will always use:
- Smart Streaming, unless you've disabled the global Automatic Live View in Settings.
- The first entry set in your `streams` configuration, if defined.
Use a camera group if you want to change any of these settings from the defaults.
:::

View File

@ -563,9 +563,12 @@ export default function DraggableGridLayout({
const streamName = streamExists
? streamNameFromSettings
: firstStreamEntry;
const streamType =
currentGroupStreamingSettings?.[camera.name]?.streamType;
const autoLive =
currentGroupStreamingSettings?.[camera.name]?.streamType !==
"no-streaming";
streamType !== undefined
? streamType !== "no-streaming"
: undefined;
const showStillWithoutActivity =
currentGroupStreamingSettings?.[camera.name]?.streamType !==
"continuous";

View File

@ -486,9 +486,12 @@ export default function LiveDashboardView({
const streamName = streamExists
? streamNameFromSettings
: firstStreamEntry;
const streamType =
currentGroupStreamingSettings?.[camera.name]?.streamType;
const autoLive =
currentGroupStreamingSettings?.[camera.name]?.streamType !==
"no-streaming";
streamType !== undefined
? streamType !== "no-streaming"
: undefined;
const showStillWithoutActivity =
currentGroupStreamingSettings?.[camera.name]?.streamType !==
"continuous";