From fda3e267951340b9c2ed612e0135308bd4a97bad Mon Sep 17 00:00:00 2001 From: Jasper Hugo Date: Mon, 7 Mar 2022 16:53:09 +0700 Subject: [PATCH] Added CLI flags for start-bitrate and stereo --- gst-meet/src/main.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gst-meet/src/main.rs b/gst-meet/src/main.rs index 50d8b44..a438ac4 100644 --- a/gst-meet/src/main.rs +++ b/gst-meet/src/main.rs @@ -50,6 +50,10 @@ struct Opt { recv_video_height: Option, #[structopt(long)] video_type: Option, + #[structopt(long)] + start_bitrate: Option, + #[structopt(long)] + stereo: Option, #[structopt(short, long, parse(from_occurrences))] verbose: u8, #[cfg(feature = "tls-insecure")] @@ -160,6 +164,8 @@ async fn main_inner() -> Result<()> { region, video_codec, recv_pipeline_participant_template, + start_bitrate, + stereo, #[cfg(feature = "log-rtp")] log_rtp, .. @@ -172,8 +178,8 @@ async fn main_inner() -> Result<()> { region, video_codec, extra_muc_features: vec![], - start_bitrate: 800, - stereo: false, + start_bitrate: start_bitrate.unwrap_or(800), + stereo: stereo.unwrap_or_default(), #[cfg(feature = "log-rtp")] log_rtp, };