WebRTC OnIceCandidate fired multiple times

时间:2016-02-12 20:27:11

标签: webrtc

I am trying to build a online Chess game application that uses WebRTC for the 2 players to talk with. I found that OnIceCandidate was fired 4 times and thus 4 ICEs (or candidates?) are generated. This post says mulitple firing is okay. My question is, should the other player get all ICEs? Or certain ICE or any is good enough?

{'sdpMid': 'sdparta_0', 'sdpMLineIndex': 0, 'candidate': 'candidate:0 1 UDP 2122121471 1.2.3.121 57386 typ host'}

{'sdpMid': 'sdparta_0', 'sdpMLineIndex': 0, 'candidate': 'candidate:2 1 UDP 2122187007 1.2.3.112 57387 typ host'}

{'sdpMid': 'sdparta_0', 'sdpMLineIndex': 0, 'candidate': 'candidate:4 1 UDP 2122055935 192.168.56.1 57388 typ host'}

{'sdpMid': 'sdparta_0', 'sdpMLineIndex': 0, 'candidate': 'candidate:6 1 UDP 2122252543 2002:824a:1479::824a:1479 57389 typ host'}

{'sdpMid': 'sdparta_0', 'sdpMLineIndex': 0, 'candidate': 'candidate:3 1 UDP 1685987327 192.231.71.2 57387 typ srflx raddr 10.88.33.112 rport 57387'}

1 个答案:

答案 0 :(得分:2)

My question is, should the other player get all ICEs? Or certain ICE or any is good enough?

Other player should get all the candidates to perform the ICE negotiation.

相关问题