diff --git a/Cargo.lock b/Cargo.lock index 3700018..13c9879 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1027,7 +1027,7 @@ dependencies = [ [[package]] name = "neolink" -version = "0.4.0" +version = "0.5.0" dependencies = [ "aes", "anyhow", @@ -1065,7 +1065,7 @@ dependencies = [ [[package]] name = "neolink_core" -version = "0.4.0" +version = "0.5.0" dependencies = [ "aes", "assert_matches", diff --git a/src/rtsp/states/shared.rs b/src/rtsp/states/shared.rs index e82c0b3..1bb7a26 100644 --- a/src/rtsp/states/shared.rs +++ b/src/rtsp/states/shared.rs @@ -35,7 +35,7 @@ impl Shared { } pub(super) fn get_paths(&self, stream: &Stream) -> Vec { - match stream { + let mut streams = match stream { Stream::Main => vec![ format!("/{}", &self.name), format!("/{}/mainStream", &self.name), @@ -44,7 +44,11 @@ impl Shared { Stream::Extern => { vec![format!("/{}/externStream", &self.name)] } - } + }; + // Later VLC clients seem to only support lower case streams + let mut lowercase_streams: Vec = streams.iter().map(|i| i.to_lowercase()).collect(); + streams.append(&mut lowercase_streams); + streams } }