mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 14:33:56 +00:00
handled RTSP video stream requests without authentication
This commit is contained in:
2
mod.cpp
2
mod.cpp
@@ -7,7 +7,7 @@ tooltipOwned = "ARMATAK";
|
|||||||
picture = "picture.paa";
|
picture = "picture.paa";
|
||||||
actionName = "GitHub";
|
actionName = "GitHub";
|
||||||
action = "https://github.com/valmojr/armatak";
|
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;
|
hideName = 0;
|
||||||
hidePicture = 0;
|
hidePicture = 0;
|
||||||
dlcColor[] = { 0.23, 0.39, 0.30, 1 };
|
dlcColor[] = { 0.23, 0.39, 0.30, 1 };
|
||||||
|
|||||||
@@ -34,10 +34,15 @@ pub fn start_stream(
|
|||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
{
|
{
|
||||||
let (tx, rx): (Sender<()>, Receiver<()>) = mpsc::channel();
|
let (tx, rx): (Sender<()>, Receiver<()>) = mpsc::channel();
|
||||||
let rtsp_url = format!(
|
let rtsp_url = if username.is_empty() || password.is_empty() {
|
||||||
"rtsp://{}:{}@{}:{}/{}",
|
format!("rtsp://{}:{}/{}", address, port, stream_path)
|
||||||
username, password, address, port, stream_path
|
} else {
|
||||||
);
|
format!(
|
||||||
|
"rtsp://{}:{}@{}:{}/{}",
|
||||||
|
username, password, address, port, stream_path
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
let rtsp_url_clone = rtsp_url.clone();
|
let rtsp_url_clone = rtsp_url.clone();
|
||||||
|
|
||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
|
|||||||
Reference in New Issue
Block a user