Share via


onerror event

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

This event fires if TURN credentials are invalid.This error event must be supported by all objects implementing the RTCIceGatherer interface.

Syntax

HTML Attribute <element onerror = "handler(event)">
Event Property object.onerror = handler;
addEventListener Method object.addEventListener("error", handler, useCapture)

 

Event information

Synchronous No
Bubbles No
Cancelable No

 

Event handler parameters

  • handler
    Type: Function

    Event handler function

Standards information

EXAMPLE

// Set up the ICE gatherer error handlers

audioRtpIceGatherer.onerror = errorHandler;
audioRtcpIceGatherer.onerror = errorHandler;
videoRtpIceGatherer.onerror = errorHandler;
videoRtcpIceGatherer.onerror = errorHandler;

See also

RTCIceGatherer