Add warning for recommending users to use better sub streams (#20482)

This commit is contained in:
Nicolas Mowen
2025-10-14 07:52:13 -05:00
committed by GitHub
parent 1a1ec8cf91
commit a96a617fc9
2 changed files with 29 additions and 1 deletions
@@ -500,6 +500,28 @@ function StreamIssues({
}
}
// Substream Check
if (
wizardData.brandTemplate == "dahua" &&
stream.roles.includes("detect") &&
stream.url.includes("subtype=1")
) {
result.push({
type: "warning",
message: t("cameraWizard.step3.issues.dahua.substreamWarning"),
});
}
if (
wizardData.brandTemplate == "hikvision" &&
stream.roles.includes("detect") &&
stream.url.includes("/102")
) {
result.push({
type: "warning",
message: t("cameraWizard.step3.issues.hikvision.substreamWarning"),
});
}
return result;
}, [stream, wizardData, t]);