webrtc/nice: support consent-freshness RFC7675 69/313769/1 accepted/tizen/unified/20240703.100044 accepted/tizen/unified/dev/20240704.065642 accepted/tizen/unified/x/20240704.022914
authorMatthew Waters <matthew@centricular.com>
Thu, 4 May 2023 06:30:09 +0000 (16:30 +1000)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 2 Jul 2024 00:09:46 +0000 (09:09 +0900)
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.

Change-Id: Ied5cfecd6472e22c7edfee7009a7ba6b19bb044f
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4542>

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

index 04c96b6c46ed476cca895e7d704fce481eaef558..b0ecc2c1f1b8e89b0e61e25932622d7c4c6b6d65 100644 (file)
@@ -1589,6 +1589,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);