mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Move stream configs to restream
This commit is contained in:
parent
fc8b02c3c5
commit
8ce56926e0
@ -517,20 +517,26 @@ class RtmpConfig(FrigateBaseModel):
|
|||||||
enabled: bool = Field(default=False, title="RTMP restreaming enabled.")
|
enabled: bool = Field(default=False, title="RTMP restreaming enabled.")
|
||||||
|
|
||||||
|
|
||||||
|
class JsmpegStreamConfig(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.")
|
||||||
|
|
||||||
|
|
||||||
|
class BaseStreamConfig(FrigateBaseModel):
|
||||||
|
height: int = Field(default=720, title="Live camera view height.")
|
||||||
|
|
||||||
|
|
||||||
class RestreamConfig(FrigateBaseModel):
|
class RestreamConfig(FrigateBaseModel):
|
||||||
enabled: bool = Field(default=True, title="Restreaming enabled.")
|
enabled: bool = Field(default=True, title="Restreaming enabled.")
|
||||||
|
jsmpeg: JsmpegStreamConfig = Field(
|
||||||
|
default_factory=JsmpegStreamConfig, title="Jsmpeg Stream Configuration."
|
||||||
class CameraLiveSourceEnum(str, Enum):
|
)
|
||||||
jsmpeg = "jsmpeg"
|
mp4: BaseStreamConfig = Field(
|
||||||
mp4 = "mp4"
|
default_factory=BaseStreamConfig, title="MP4 Stream Configuration."
|
||||||
webrtc = "webrtc"
|
)
|
||||||
|
webrtc: BaseStreamConfig = Field(
|
||||||
|
default_factory=BaseStreamConfig, title="Webrtc Stream Configuration."
|
||||||
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.jsmpeg)
|
|
||||||
|
|
||||||
|
|
||||||
class CameraUiConfig(FrigateBaseModel):
|
class CameraUiConfig(FrigateBaseModel):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user