Configurable strict BCMedia
This commit is contained in:
1 parent
17846c7bfc
commit
7fccda4aa7
11 files changed
+124
-38
No files matched your search
@@ -95,6 +95,10 @@ pub(crate) struct CameraConfig {
|
||||
code = "max_encryption"
|
||||
))]
|
||||
pub(crate) max_encryption: String,
|
||||
|
||||
#[serde(default = "default_strict")]
|
||||
/// If strict then the media stream will error in the event that the media packets are not as expected
|
||||
pub(crate) strict: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Validate, Clone)]
|
||||
@@ -207,6 +211,10 @@ fn default_pause_mode() -> String {
|
||||
"none".to_string()
|
||||
}
|
||||
|
||||
fn default_strict() -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
fn default_pause() -> PauseConfig {
|
||||
PauseConfig {
|
||||
on_motion: default_on_motion(),
|
||||
|
||||
Reference in new issue
Block a user