gatheringState property
RTCIceGathererState
get
gatheringState
The gatheringState
read-only property of the RTCIceTransport
interface returns a string that indicates the current gathering state of
the ICE agent for this transport: "new"
, "gathering"
, or "complete"
.
You can detect when the value of this property changes by watching for an
event of type RTCIceTransport.gatheringstatechange_event
.
Note that gatheringState
represents the gathering state of just this
transport, while RTCPeerConnection.iceGatheringState represents the
overall gathering state of the whole connection, including every
RTCIceTransport used by every RTCRtpSender and every RTCRtpReceiver
on the entire connection.
Implementation
external RTCIceGathererState get gatheringState;