onConnectionChange

open override fun onConnectionChange(newState: PeerConnection.PeerConnectionState)

Triggered when the connection state changes. Used to start and stop the stats observing.

Parameters

newState

The new state of the PeerConnection.