Delegate DelegateOnIceCandidate
Delegate to be called when a new RTCIceCandidate is identified and added to the local peer, when all candidates for a specific generation are identified and added, and when the ICE gathering on all transports is complete.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public delegate void DelegateOnIceCandidate(RTCIceCandidate candidate)
Parameters
Type | Name | Description |
---|---|---|
RTCIceCandidate | candidate |
|
Remarks
This delegate is called when:
- An
RTCIceCandidate
is added to the local peer usingSetLocalDescription
. - Every
RTCIceCandidate
correlated with a specific username/password combination are added. - ICE gathering for all transports is finished.
Examples
peerConnection.OnIceCandidate = candidate =>
{
otherPeerConnection.AddIceCandidate(candidate);
}