in my app i have 2 connection like so
yourConn1 = new RTCPeerConnection(servers);
they said in number 5 and 6 and 7
Register a listener for icecandidate events on the RTCPeerConnection
For each icecandidate events, transfer it (using a signalling service) to the remote peer
Wait for incoming remote ICE candidates from the signalling service and add them using
RTCPeerConnection.addIceCandidate()
as a caller
and as a callee the last three steps also same thing
Register a listener for icecandidate events on the RTCPeerConnection
For each icecandidate events, transfer it (using a signalling service) to the remote peer
Wait for incoming remote ICE candidates from the signalling service and add them using
RTCPeerConnection.addIceCandidate()
should i listen to each new RTCPeerConnection(x) if i had 2 of them like so
p1.onicecandidate = (event) => { }; p2.onicecandidate = (event) => { };
and as a caller sould i add ice candidate for my connection not for the calle or should to add candidate for both of them like so
var NewlyIceCandidate = new RTCIceCandidate(candidate);
await p1.addIceCandidate(NewlyIceCandidate);