RTCPeerConnectionIceErrorEvent
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
RTCPeerConnectionIceErrorEvent
object, with itstype
and 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:
-
address
Read only -
A
DOMString
providing the local IP address used to communicate with the STUN or TURN server being used to negotiate the connection, ornull
if the local IP address has not yet been exposed as part of a local ICE candidate. -
errorCode
Read 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
icegatheringstate
isgathering
. -
errorText
Read only -
A
DOMString
containing 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. -
port
Read 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
.null
if the connection hasn't been established (that is, ifaddress
isnull
). -
url
Read only -
A
DOMString
indicating 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 |
---|
WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0) # rtcpeerconnectioniceerrorevent |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
RTCPeerConnectionIceErrorEvent |
77 |
79 |
No |
No |
64 |
14.1 |
77 |
77 |
No |
55 |
14.5 |
12.0 |
RTCPeerConnectionIceErrorEvent |
77 |
79 |
No |
No |
64 |
14.1 |
77 |
77 |
No |
55 |
14.5 |
12.0 |
address |
81 |
81 |
No |
No |
68 |
14.1 |
81 |
81 |
No |
58 |
14.5 |
13.0 |
errorCode |
77 |
79 |
No |
No |
64 |
14.1 |
77 |
77 |
No |
55 |
14.5 |
12.0 |
errorText |
77 |
79 |
No |
No |
64 |
14.1 |
77 |
77 |
No |
55 |
14.5 |
12.0 |
hostCandidate |
77 |
79 |
No |
No |
64 |
No |
77 |
77 |
No |
55 |
No |
12.0 |
port |
81 |
81 |
No |
No |
68 |
14.1 |
81 |
81 |
No |
58 |
14.5 |
13.0 |
url |
77 |
79 |
No |
No |
64 |
14.1 |
77 |
77 |
No |
55 |
14.5 |
12.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent