Skip to content

Commit

Permalink
Fix access print
Browse files Browse the repository at this point in the history
  • Loading branch information
dchansen06 authored Sep 19, 2024
1 parent 6408d04 commit 8f47e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn main() {
println!("Reading port: {}", port);
println!("Attempting: {}x{}", width, height);
println!("Trying device: {}", video);
println!("See\n\t0.0.0.0:{}/snapshot.jpg?key={}\n\t0.0.0.0:{}/stream.mjpg?key={}\n", port, apikey, port, apikey.lock().unwrap());
println!("See\n\t0.0.0.0:{}/snapshot.jpg?key={}\n\t0.0.0.0:{}/stream.mjpg?key={}\n", port, apikey.lock().unwrap(), port, apikey.lock().unwrap());

let listener = TcpListener::bind(format!("0.0.0.0:{}", port)).expect(&format!("Failed to get 0.0.0.0:{}", port));
let camera = Arc::new(Mutex::new(videoio::VideoCapture::new(video, videoio::CAP_ANY).expect("Failed to get video capture")));
Expand Down

0 comments on commit 8f47e2b

Please # to comment.