Allow stream specification in config

This commit is contained in:
QuantumEntangledAndy committed 2020-06-30 11:41:19 +07:00
1 parent 826814abd7
commit 4ea20f0542
3 files changed
+10 -3

No files matched your search

+7
View File
@@ -24,6 +24,9 @@ pub struct CameraConfig {
#[serde(default = "default_format")]
pub format: String,
#[serde(default = "default_stream")]
pub stream: String,
}
fn default_bind_addr() -> String {
@@ -33,3 +36,7 @@ fn default_bind_addr() -> String {
fn default_format() -> String {
"h265".to_string()
}
fn default_stream() -> String {
"mainStream".to_string()
}