@@ -1275,6 +1275,14 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
12751275 remoteId?: string;
12761276}
12771277
1278+ interface RTCPeerConnectionIceErrorEventInit extends EventInit {
1279+ address?: string | null;
1280+ errorCode: number;
1281+ errorText?: string;
1282+ port?: number | null;
1283+ url?: string;
1284+ }
1285+
12781286interface RTCPeerConnectionIceEventInit extends EventInit {
12791287 candidate?: RTCIceCandidate | null;
12801288 url?: string | null;
@@ -4456,6 +4464,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
44564464 createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
44574465 createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
44584466 createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
4467+ createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
44594468 createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
44604469 createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
44614470 createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
@@ -11619,6 +11628,17 @@ declare var RTCPeerConnection: {
1161911628 generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
1162011629};
1162111630
11631+ interface RTCPeerConnectionIceErrorEvent extends Event {
11632+ readonly errorCode: number;
11633+ readonly errorText: string;
11634+ readonly url: string;
11635+ }
11636+
11637+ declare var RTCPeerConnectionIceErrorEvent: {
11638+ readonly prototype: RTCPeerConnectionIceErrorEvent;
11639+ new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
11640+ };
11641+
1162211642/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
1162311643interface RTCPeerConnectionIceEvent extends Event {
1162411644 readonly candidate: RTCIceCandidate | null;
0 commit comments