From 04ec4fff8f34924b4ab8f61f2ee5d450b934dcd9 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Wed, 18 Sep 2024 12:11:45 -0700 Subject: [PATCH] added debug log; switched to linux video source --- src/gst.rs | 3 ++- src/main.rs | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gst.rs b/src/gst.rs index 4e581b8..5e6fd03 100644 --- a/src/gst.rs +++ b/src/gst.rs @@ -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!"); diff --git a/src/main.rs b/src/main.rs index 21f3be7..7580f2d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {