The RTCPeerConnectionIceErrorEvent() constructor creates a new RTCPeerConnectionIceErrorEvent object with its type and other properties initialized as specified in the parameters.
Note that you will not normally create an object of this type yourself.
new RTCPeerConnectionIceErrorEvent(type, options)typeA string with the name of the event. This is usually "icecandidateerror".
optionsAn object that, in addition to the properties defined in Event(), can have the following properties:
address OptionalA string indicating the local address used to communicate with the STUN or TURN server. This should be set to null if the local IP address has not yet been exposed as part of a local ICE candidate.
errorCodeA positive number providing the STUN error code returned by the STUN or TURN server. If no host candidate can reach the server and the iceGatheringState is gathering, this should be set to 701.
errorText OptionalA string providing the STUN reason text returned by the STUN or TURN server.
port OptionalA positive number indicating the local port used to communicate with the STUN or TURN server. This should be set to null if the connection hasn't been established (that is, if address is null).
url OptionalA string indicating the URL of the STUN or TURN server being used.
A new RTCPeerConnectionIceErrorEvent object.