You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
// Prepare to add ICE candidates signalled by the remote peerresponseSignaller.onRemoteCandidate=function(remote){// Locate the ICE transport that the signaled candidate relates to by matching the userNameFragment.varj=0;for(j=0;j<iceTransport.length;j++){if(getRemoteParameters(iceTransport(j)).userNameFragment===remote.parameters.userNameFragment){if(remote.component===RTCIceComponent.RTP){iceRtpTransport[j].addRemoteCandidate(remote.candidate);}else{iceRtcpTransport[j].addRemoteCandidate(remote.candidate);}}}};
this code checked userNameFragment at each candidate from remote.params.
this means when local oncandidate happens, we need to send it to peer with userNameFragment like this ?
I have question about Example 5
https://github.com/openpeer/ortc/blob/master/ortc.html#L1523
this code checked userNameFragment at each candidate from
remote.params.this means when local oncandidate happens, we need to send it to peer with userNameFragment like this ?
in that case, we need to send getLocalParameter result twice ?
1 at send candidate, 2 at send parameters.