iceConnectionState property
RTCIceConnectionState
get
iceConnectionState
The iceConnectionState
read-only property of the RTCPeerConnection
interface returns a string which state of the agent associated with the
RTCPeerConnection: new
, checking
, connected
, completed
,
failed
, disconnected
, and closed
.
It describes the current state of the ICE agent and its connection to the ICE server; that is, the or server.
You can detect when this value has changed by watching for the
RTCPeerConnection.iceconnectionstatechange_event
event.
Implementation
external RTCIceConnectionState get iceConnectionState;