mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-15 08:21:16 +03:00
add camera config updater topic for live section
to support adding go2rtc streams after configuring a new one via the UI
This commit is contained in:
parent
7f3696fceb
commit
c1dfdf57db
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user