Allowing custom gst-launches and specification of format in the camera

This commit is contained in:
QuantumEntangledAndy committed 2020-06-30 11:30:24 +07:00
1 parent 63875d1175
commit 826814abd7
3 files changed
+24 -6

No files matched your search

+7
View File
@@ -21,8 +21,15 @@ pub struct CameraConfig {
pub password: Option<String>,
pub timeout: Option<Duration>,
#[serde(default = "default_format")]
pub format: String,
}
fn default_bind_addr() -> String {
"0.0.0.0".to_string()
}
fn default_format() -> String {
"h265".to_string()
}