RTCIceTransport.gatheringState

The read-only RTCIceTransport property gatheringState returns a DOMString that indicates the current gathering state of the ICE agent: "new", "gathering", or "complete".

Value

A DOMString that indicates the current state of the ICE agent's candidate gathering process:

"new"

The RTCIceTransport is newly created and has not yet started to gather ICE candidates.

"gathering"

The transport is in the process of gathering candidates.

"complete"

The transport has finished gathering ICE candidates and has sent the end-of-candidates indicator to the remote device. The transport won't gather any further candidates unless an ICE restart occurs, at which point the gathering process starts over from scratch.

Specifications

Specification
WebRTC 1.0: Real-Time Communication Between Browsers
# dom-icetransport-gatheringstate

Browser compatibility

BCD tables only load in the browser