generated from security-union/yew-actix-template
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
video-daemon: update code to ubuntu 24 (#173)
* update code to ubuntu 24 * make nokhwa happy * make audio optional * save
- Loading branch information
1 parent
f39332a
commit c924c7a
Showing
9 changed files
with
107 additions
and
337 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,3 @@ pub mod fake_cert_verifier; | |
pub mod microphone; | ||
pub mod quic; | ||
pub mod video_encoder; | ||
pub mod yuyv_format; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Function to handle Ctrl+C (SIGINT) | ||
cleanup() { | ||
echo "Caught Ctrl+C, killing all processes..." | ||
kill $PID1 $PID2 | ||
wait $PID1 $PID2 2>/dev/null | ||
exit | ||
} | ||
|
||
# Trap Ctrl+C signal | ||
trap cleanup SIGINT | ||
|
||
# Run the first process in the background and capture its PID | ||
RUST_LOG=info cargo run --release -- --user-id pi-1 --video-device-index 4 --meeting-id test https://transport.rustlemania.com & | ||
PID1=$! | ||
|
||
# Run the second process in the background and capture its PID | ||
RUST_LOG=info cargo run --release -- --user-id pi-2 --video-device-index 0 --meeting-id test https://transport.rustlemania.com & | ||
PID2=$! | ||
|
||
# Wait for all background processes to finish | ||
wait $PID1 $PID2 |