From 93ea5d484b4bfb0a77232d9abed54691546c6777 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 19 Oct 2022 16:56:33 +0400 Subject: [PATCH] add end-of-candidates attribute to server's SDP --- transports/webrtc/src/tokio/sdp.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/transports/webrtc/src/tokio/sdp.rs b/transports/webrtc/src/tokio/sdp.rs index 41e36cfd86d..d90b1977471 100644 --- a/transports/webrtc/src/tokio/sdp.rs +++ b/transports/webrtc/src/tokio/sdp.rs @@ -174,6 +174,10 @@ a=max-message-size:16384 // a=candidate: // // A transport address for a candidate that can be used for connectivity checks (RFC8839). +// +// a=end-of-candidates +// +// Indicate that no more candidates will ever be sent (RFC8838). const SERVER_SESSION_DESCRIPTION: &str = "v=0 o=- 0 0 IN {ip_version} {target_ip} s=- @@ -191,6 +195,7 @@ a=setup:passive a=sctp-port:5000 a=max-message-size:16384 a=candidate:1 1 UDP 1 {target_ip} {target_port} typ host +a=end-of-candidates "; /// Indicates the IP version used in WebRTC: `IP4` or `IP6`.