mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-24 11:37:48 -05:00
support --rtsp-library=retina (#37)
This isn't well-tested and doesn't yet support an initial connection timeout. But in a quick test, it successfully returns video! I'd like to do some more aggressive code restructuring for zero-copy and to have only one writer thread per sample file directory (rather than the syncer thread + one writer thread per RTSP stream). But I'll likely wait until I drop support for ffmpeg entirely.
This commit is contained in:
@@ -70,8 +70,8 @@ pub struct Camera<'a> {
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct CameraConfig<'a> {
|
||||
pub onvif_host: &'a str,
|
||||
pub username: &'a str,
|
||||
pub password: &'a str,
|
||||
pub username: Option<&'a str>,
|
||||
pub password: Option<&'a str>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
@@ -191,8 +191,8 @@ impl<'a> Camera<'a> {
|
||||
false => None,
|
||||
true => Some(CameraConfig {
|
||||
onvif_host: &c.onvif_host,
|
||||
username: &c.username,
|
||||
password: &c.password,
|
||||
username: c.username.as_deref(),
|
||||
password: c.password.as_deref(),
|
||||
}),
|
||||
},
|
||||
streams: [
|
||||
|
||||
Reference in New Issue
Block a user