allow setting rtsp transport per-stream

This commit is contained in:
Scott Lamb
2021-10-27 14:27:23 -07:00
parent 981cee0706
commit 1c9a55653d
5 changed files with 64 additions and 8 deletions

View File

@@ -209,6 +209,10 @@ pub struct StreamConfig {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub url: Option<Url>,
/// The RTSP transport (`tcp` or `udp`) to use.
#[serde(default, skip_serializing_if = "String::is_empty")]
pub rtsp_transport: String,
/// The number of bytes of video to retain, excluding the
/// currently-recording file.
///