webrtc/nice: support consent-freshness RFC7675
authorMatthew Waters <matthew@centricular.com>
Thu, 4 May 2023 06:30:09 +0000 (16:30 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 8 May 2023 14:51:55 +0000 (15:51 +0100)
As is supported by libwebrtc already.  This allows ICE components to
transition to failed if consent to send from the peer is revoked or if
multiple consent packets are lost.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4575>

subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c

index f62eb91..a59f578 100644 (file)
@@ -1583,6 +1583,7 @@ gst_webrtc_nice_constructed (GObject * object)
 
   options |= NICE_AGENT_OPTION_ICE_TRICKLE;
   options |= NICE_AGENT_OPTION_REGULAR_NOMINATION;
+  options |= NICE_AGENT_OPTION_CONSENT_FRESHNESS;
 
   ice->priv->nice_agent = nice_agent_new_full (ice->priv->main_context,
       NICE_COMPATIBILITY_RFC5245, options);