mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 05:21:00 +00:00
webrtcsrc: don't restrict RTP extensions to TWCC only
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1381>
This commit is contained in:
parent
c616423edb
commit
773ebc7854
1 changed files with 1 additions and 8 deletions
|
@ -30,9 +30,6 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
const RTP_TWCC_URI: &str =
|
|
||||||
"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01";
|
|
||||||
|
|
||||||
struct Settings {
|
struct Settings {
|
||||||
stun_server: Option<String>,
|
stun_server: Option<String>,
|
||||||
turn_servers: gst::Array,
|
turn_servers: gst::Array,
|
||||||
|
@ -807,12 +804,8 @@ impl BaseWebRTCSrc {
|
||||||
|
|
||||||
filtered_s.extend(s.iter().filter_map(|(key, value)| {
|
filtered_s.extend(s.iter().filter_map(|(key, value)| {
|
||||||
if key.starts_with("extmap-") {
|
if key.starts_with("extmap-") {
|
||||||
if let Ok(s) = value.get::<String>() {
|
|
||||||
if s == RTP_TWCC_URI {
|
|
||||||
return Some((key, value.to_owned()));
|
return Some((key, value.to_owned()));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
None
|
None
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue