Delegate DelegateOnIceGatheringStateChange
Delegate to be called when the state of the ICE candidate gathering process changes.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public delegate void DelegateOnIceGatheringStateChange(RTCIceGatheringState state)
Parameters
Type | Name | Description |
---|---|---|
RTCIceGatheringState | state |
Remarks
This delegate is called when the state of the ICE candidate gathering process changes.
Examples
peerConnection.OnIceGatheringStateChange = state =>
{
if (state == RTCIceGatheringState.Complete)
{
GameObject newCandidate = Instantiate(candidateElement, candidateParent);
}
}