webrtc/nice: support consent-freshness RFC7675

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>
This commit is contained in:
Matthew Waters 2023-05-04 16:30:09 +10:00 committed by Tim-Philipp Müller
parent e23645b5ad
commit 0161687505

View 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);