added debug log; switched to linux video source

This commit is contained in:
Nickiel12 2024-09-18 12:11:45 -07:00
parent 64458305ca
commit 04ec4fff8f
2 changed files with 7 additions and 2 deletions

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 {