mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Add camera live source config
This commit is contained in:
parent
22c8828da8
commit
eae7123cf3
@ -521,9 +521,15 @@ class RestreamConfig(FrigateBaseModel):
|
||||
enabled: bool = Field(default=True, title="go2rtc restreaming enabled.")
|
||||
|
||||
|
||||
class CameraLiveSourceEnum(str, Enum):
|
||||
jsmpeg = "jsmpeg"
|
||||
restream = "restream"
|
||||
|
||||
|
||||
class CameraLiveConfig(FrigateBaseModel):
|
||||
height: int = Field(default=720, title="Live camera view height")
|
||||
quality: int = Field(default=8, ge=1, le=31, title="Live camera view quality")
|
||||
source: CameraLiveSourceEnum = Field(default=CameraLiveSourceEnum.restream)
|
||||
|
||||
|
||||
class CameraUiConfig(FrigateBaseModel):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user