Compare commits

..

2 commits

Author SHA1 Message Date
Nickiel12
04ec4fff8f added debug log; switched to linux video source 2024-09-18 12:11:45 -07:00
Nickiel12
64458305ca bumped deps 2024-09-18 12:11:30 -07:00
4 changed files with 49 additions and 15 deletions

36
Cargo.lock generated
View file

@ -2219,7 +2219,19 @@ dependencies = [
"futures-util",
"log",
"tokio",
"tungstenite",
"tungstenite 0.23.0",
]
[[package]]
name = "tokio-tungstenite"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edc5f74e248dc973e0dbb7b74c7e0d6fcc301c694ff50049504004ef4d0cdcd9"
dependencies = [
"futures-util",
"log",
"tokio",
"tungstenite 0.24.0",
]
[[package]]
@ -2344,6 +2356,24 @@ dependencies = [
"utf-8",
]
[[package]]
name = "tungstenite"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "18e5b8366ee7a95b16d32197d0b2604b43a0be89dc5fac9f8e96ccafbaedda8a"
dependencies = [
"byteorder",
"bytes",
"data-encoding",
"http",
"httparse",
"log",
"rand",
"sha1",
"thiserror",
"utf-8",
]
[[package]]
name = "turn"
version = "0.8.0"
@ -2473,7 +2503,7 @@ dependencies = [
"serde_json",
"snafu",
"tokio",
"tokio-tungstenite",
"tokio-tungstenite 0.24.0",
"tokio-util",
"toml",
"tracing",
@ -2494,7 +2524,7 @@ dependencies = [
"serde",
"serde_json",
"tokio",
"tokio-tungstenite",
"tokio-tungstenite 0.23.1",
"tracing",
"webrtc",
]

View file

@ -6,24 +6,23 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-channel = "2.3.1"
bincode = "1.3.3"
config = "0.14.0"
futures-util = "0.3.30"
gstreamer = { version = "0.23.0", features = ["v1_22"] }
gstreamer-app = { version = "0.23.0", features = ["v1_22"] }
log = "0.4.22"
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.122"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
snafu = "0.8.4"
tokio = { version = "1.39.2", features = ["signal"] }
tokio-tungstenite = "0.23.1"
tokio = { version = "1.40", features = ["signal"] }
tokio-util = "0.7.12"
tokio-tungstenite = "0.24"
toml = "0.8.19"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
uuid = "1.10.0"
webrtc = "0.11.0"
vcs-common = { git = "https://git.nickiel.net/VCC/vcs-common.git", branch = "main" }
async-channel = "2.3.1"
futures-util = "0.3.30"
bincode = "1.3.3"
tokio-util = "0.7.12"
uuid = "1.10.0"

View file

@ -20,7 +20,8 @@ pub fn new_pipeline(config: &AppConfig) -> Pipeline {
.name("camera_to_rtp_pipeine")
.build();
let source = ElementFactory::make("mfvideosrc")
// let source = ElementFactory::make("mfvideosrc")
let source = ElementFactory::make("v4l2src")
.build()
.expect("Could not make mfvideosrc element!");

View file

@ -274,7 +274,11 @@ async fn main() {
}
info!("webrtc kickoff complete, entering watch mode");
} // end supports_webrtc portion
}
// end supports_webrtc portion
else {
info!("Skipped webrtc setup");
}
// loop through messages coming from the remote.
loop {