support udp with retina or ffmpeg

This commit is contained in:
Scott Lamb
2021-08-31 08:10:50 -07:00
parent 7ed02bd112
commit 78bafb01f6
7 changed files with 46 additions and 29 deletions

View File

@@ -157,6 +157,7 @@ fn press_test_inner(
url,
username,
password,
transport: retina::client::Transport::Tcp,
},
)?;
Ok(format!(

View File

@@ -76,6 +76,9 @@ pub struct Args {
/// developed by Moonfire NVR's author).
#[structopt(long, default_value = "retina", parse(try_from_str))]
rtsp_library: crate::stream::RtspLibrary,
#[structopt(long, default_value)]
rtsp_transport: retina::client::Transport,
}
// These are used in a hack to get the name of the current time zone (e.g. America/Los_Angeles).
@@ -223,6 +226,7 @@ async fn async_run(args: &Args) -> Result<i32, Error> {
let env = streamer::Environment {
db: &db,
opener: args.rtsp_library.opener(),
transport: args.rtsp_transport,
shutdown: &shutdown_streamers,
};