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/4542>
This commit is contained in:
Matthew Waters 2023-05-04 16:30:09 +10:00 committed by GStreamer Marge Bot
parent 4cbd8d6fc6
commit 8ca6547f49

View file

@ -1627,6 +1627,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);