Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
dchansen06 authored Sep 19, 2024
1 parent a0bae7d commit 4962bfd
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);
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());

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 4962bfd

Please sign in to comment.