Delegate DelegateOnConnectionStateChange
Delegate to be called after a new track has been added to an RTCRtpReceiver which is part of the connection.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public delegate void DelegateOnConnectionStateChange(RTCPeerConnectionState state)
Parameters
Type | Name | Description |
---|---|---|
RTCPeerConnectionState | state |
Remarks
This delegate is called after a new track has been added to an RTCRtpReceiver
which is part of the connection.
Examples
peerConnection.OnConnectionStateChange = state =>
{
Debug.Log($"Connection state changed to {state}");
}