mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-04 13:47:37 +02:00
Ensure we use the stream name from local storage on mobile (#17452)
This commit is contained in:
parent
17912b4695
commit
2c1ded37a1
@ -472,11 +472,20 @@ export default function LiveDashboardView({
|
|||||||
} else {
|
} else {
|
||||||
grow = "aspect-video";
|
grow = "aspect-video";
|
||||||
}
|
}
|
||||||
const streamName =
|
const availableStreams = camera.live.streams || {};
|
||||||
currentGroupStreamingSettings?.[camera.name]?.streamName ||
|
const firstStreamEntry = Object.values(availableStreams)[0] || "";
|
||||||
camera?.live?.streams
|
|
||||||
? Object?.values(camera?.live?.streams)?.[0]
|
const streamNameFromSettings =
|
||||||
: "";
|
currentGroupStreamingSettings?.[camera.name]?.streamName || "";
|
||||||
|
const streamExists =
|
||||||
|
streamNameFromSettings &&
|
||||||
|
Object.values(availableStreams).includes(
|
||||||
|
streamNameFromSettings,
|
||||||
|
);
|
||||||
|
|
||||||
|
const streamName = streamExists
|
||||||
|
? streamNameFromSettings
|
||||||
|
: firstStreamEntry;
|
||||||
const autoLive =
|
const autoLive =
|
||||||
currentGroupStreamingSettings?.[camera.name]?.streamType !==
|
currentGroupStreamingSettings?.[camera.name]?.streamType !==
|
||||||
"no-streaming";
|
"no-streaming";
|
||||||
|
Loading…
Reference in New Issue
Block a user