RTCPeerConnection: sự kiện icecandidateerror

Khả dụng hạn chế

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Sự kiện icecandidateerror của giao diện RTCPeerConnection được gửi tới kết nối nếu xảy ra lỗi trong quá trình thu thập ICE candidate. Sự kiện này mô tả lỗi.

Cú pháp

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

onicecandidateerror = (event) => { }

Loại sự kiện

Một RTCPeerConnectionIceErrorEvent.

Thông số kỹ thuật

Thông số kỹ thuật
WebRTC: Real-Time Communication in Browsers
# dom-rtcpeerconnection-onicecandidateerror

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