RTCPeerConnection: sự kiện icegatheringstatechange

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2017.

Sự kiện icegatheringstatechange của giao diện RTCPeerConnection được gửi khi trạng thái thu thập của lớp ICE, được phản ánh bởi iceGatheringState, thay đổi. Điều này cho biết liệu việc thương lượng ICE chưa bắt đầu (new), đã bắt đầu thu thập candidate (gathering) hay đã hoàn tất (complete).

Cú pháp

js
addEventListener("icegatheringstatechange", (event) => { })

onicegatheringstatechange = (event) => { }

Loại sự kiện

Một Event chung.

Thông số kỹ thuật

Specification
WebRTC: Real-Time Communication in Browsers
# dom-rtcpeerconnection-onicegatheringstatechange

Tương thích trình duyệt