webrtcsink: set rtpgccbwe min bitrate

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1896>
This commit is contained in:
Jerome Colle 2024-10-29 09:53:43 +01:00 committed by GStreamer Marge Bot
parent 26a6c3b7b9
commit f88c88ddb3

View file

@ -1475,7 +1475,9 @@ impl SessionInner {
if let Some(rtpgccbwe) = self.rtpgccbwe.as_ref() { if let Some(rtpgccbwe) = self.rtpgccbwe.as_ref() {
let max_bitrate = self.cc_info.max_bitrate * (self.encoders.len() as u32); let max_bitrate = self.cc_info.max_bitrate * (self.encoders.len() as u32);
let min_bitrate = self.cc_info.min_bitrate * (self.encoders.len() as u32);
rtpgccbwe.set_property("max-bitrate", max_bitrate); rtpgccbwe.set_property("max-bitrate", max_bitrate);
rtpgccbwe.set_property("min-bitrate", min_bitrate);
} }
} }
} }