Why WebRTC works wthout ICE candidates exchange

75 views
Skip to first unread message

Alexey Boyko

unread,
Aug 14, 2023, 3:30:21 PM8/14/23
to discuss-webrtc
Code example below exchange only SDP between peers. It does not send ICE candidates. And its working. Why this code work if ICEs don't exchange?

shakeeb nazmus

unread,
Aug 15, 2023, 3:49:59 AM8/15/23
to discuss-webrtc
Hi Alexey.

>> Why this code work if ICEs don't exchange?
It is working because there are ICE candidates in the SDP.  

You can verify it. As you wait for last ICE candidate then get the SDP . The SDP will have all the candidates. you don't need to send candidates with separate signaling message. This is called regular ICE 
If you send candidates one by one by Signaling that is called trickle ICE.

Even it is possible to establish connection if only one side sends the candidate because of the support of peer reflexive candidates. 

But it is not possible if none of them sends any candidate.    
 
Thanks,
Shakeeb

Alexey Boyko

unread,
Aug 15, 2023, 8:08:19 AM8/15/23
to discuss-webrtc
Shakeeb, thank you!
Reply all
Reply to author
Forward
0 new messages