The RTCPeerConnectionIceErrorEvent interface—based upon the Event interface—provides details pertaining to an ICE error announced by sending an icecandidateerror event to the RTCPeerConnection object.
Constructor
RTCPeerConnectionIceErrorEvent()- Creates and returns a new
RTCPeerConnectionIceErrorEventobject, with itstypeand other properties initialized as specified in the parameters. You will not normally create an object of this type yourself.
Properties
The RTCPeerConnectionIceErrorEvent interface includes the properties found on the Event interface, as well as the following properties:
addressRead only- A
DOMStringproviding the local IP address used to communicate with the STUN or TURN server being used to negotiate the connection, ornullif the local IP address has not yet been exposed as part of a local ICE candidate. errorCodeRead only- An unsigned integer value stating the numeric STUN error code returned by the STUN or TURN server. If no host candidate can reach the server, this property is set to the number 701, which is outside the range of valid STUN error codes. The 701 error is fired only once per server URL, and only while the is
icegatheringstateisgathering. errorTextRead only- A
DOMStringcontaining the STUN reason text returned by the STUN or TURN server. If communication with the STUN or TURN server couldn't be established at all, this string will be a browser-specific string explaining the error. portRead only- An unsigned integer value giving the port number over which communication with the STUN or TURN server is taking place, using the IP address given in
address.nullif the connection hasn't been established (that is, ifaddressisnull). urlRead only- A
DOMStringindicating the URL of the STUN or TURN server with which the error occurred.
Methods
RTCPeerConnectionIceErrorEvent has no methods other than any provided by the parent interface, Event.
Examples
TBD
Specifications
| Specification | Status | Comment |
|---|---|---|
| WebRTC 1.0: Real-time Communication Between Browsers The definition of 'RTCPeerConnectionIceErrorEvent' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
RTCPeerConnectionIceErrorEvent | Chrome ? | Edge ? | Firefox ? | IE No support No | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
errorCode | Chrome ? | Edge ? | Firefox ? | IE No support No | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
errorText | Chrome ? | Edge ? | Firefox ? | IE No support No | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
hostCandidate | Chrome ? | Edge ? | Firefox ? | IE No support No | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
url | Chrome ? | Edge ? | Firefox ? | IE No support No | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
Legend
- No support
- No support
- Compatibility unknown
- Compatibility unknown
