Add go2rtc streams to settings UI (#22531)

* Add go2rtc settings section

- create separate settings section for all go2rtc streams
- extract credentials mask code into util
- create ffmpeg module utility
- i18n

* add camera config updater topic for live section

to support adding go2rtc streams after configuring a new one via the UI

* clean up

* tweak delete button color for consistency

* tweaks
This commit is contained in:
Josh Hawkins
2026-03-19 10:33:42 -06:00
committed by GitHub
parent c93dad9bd9
commit e2bfa26719
8 changed files with 1246 additions and 43 deletions
+3
View File
@@ -18,6 +18,7 @@ class CameraConfigUpdateEnum(str, Enum):
detect = "detect"
enabled = "enabled"
ffmpeg = "ffmpeg"
live = "live"
motion = "motion" # includes motion and motion masks
notifications = "notifications"
objects = "objects"
@@ -107,6 +108,8 @@ class CameraConfigUpdateSubscriber:
config.enabled = updated_config
elif update_type == CameraConfigUpdateEnum.object_genai:
config.objects.genai = updated_config
elif update_type == CameraConfigUpdateEnum.live:
config.live = updated_config
elif update_type == CameraConfigUpdateEnum.motion:
config.motion = updated_config
elif update_type == CameraConfigUpdateEnum.notifications: