Firefox Tomorrow

web api constructor

RTCPeerConnectionIceErrorEvent: RTCPeerConnectionIceErrorEvent() constructor

View on MDN ↗

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.

Syntax

new RTCPeerConnectionIceErrorEvent(type, options)

Parameters

  • type
    • : A string with the name of the event. This is usually "icecandidateerror".
  • options
    • : An object that, in addition to the properties defined in Event(), can have the following properties:
      • address Optional
        • : A 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.
      • errorCode
        • : A 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 Optional
        • : A string providing the STUN reason text returned by the STUN or TURN server.
      • port Optional
        • : A 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 Optional
        • : A string indicating the URL of the STUN or TURN server being used.

Return value

A new RTCPeerConnectionIceErrorEvent object.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.