mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 20:16:35 +00:00
chore: remove unused legacy stream_uri method
This commit is contained in:
parent
29b7e30844
commit
0cd508a2ec
1 changed files with 0 additions and 12 deletions
|
|
@ -104,16 +104,4 @@ impl BundleCamera {
|
|||
Some((uri, badge))
|
||||
}
|
||||
|
||||
/// Legacy single-arg stream picker (no heuristic).
|
||||
pub fn stream_uri(&self, selector: Option<&str>) -> Option<&str> {
|
||||
let sel = selector.unwrap_or("auto");
|
||||
match sel {
|
||||
"main" => self.streams.iter().find(|s| s.role == "main"),
|
||||
"sub" => self.streams.iter().find(|s| s.role == "sub"),
|
||||
_ => self.streams.iter().find(|s| s.role == "main")
|
||||
.or_else(|| self.streams.first()),
|
||||
}
|
||||
.map(|s| s.rtsp_uri.as_str())
|
||||
.or(self.rtsp_url.as_deref())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue