handled RTSP video stream requests without authentication

This commit is contained in:
Valmo Trindade
2025-04-16 05:34:27 -03:00
parent ca4231f669
commit 162f3c7e7a
2 changed files with 10 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ tooltipOwned = "ARMATAK";
picture = "picture.paa";
actionName = "GitHub";
action = "https://github.com/valmojr/armatak";
overview = "ARMATAK Addons is Full Stack Project to handle Arma 3 Sessions as real loc entities on TAK Clients";
overview = "ARMATAK Addons allows Arma 3 sessions to be parsed to TAK Clients";
hideName = 0;
hidePicture = 0;
dlcColor[] = { 0.23, 0.39, 0.30, 1 };

View File

@@ -34,10 +34,15 @@ pub fn start_stream(
#[cfg(target_os = "windows")]
{
let (tx, rx): (Sender<()>, Receiver<()>) = mpsc::channel();
let rtsp_url = format!(
let rtsp_url = if username.is_empty() || password.is_empty() {
format!("rtsp://{}:{}/{}", address, port, stream_path)
} else {
format!(
"rtsp://{}:{}@{}:{}/{}",
username, password, address, port, stream_path
);
)
};
let rtsp_url_clone = rtsp_url.clone();
thread::spawn(move || {