@@ -1275,6 +1275,14 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
1275
1275
remoteId?: string;
1276
1276
}
1277
1277
1278
+ interface RTCPeerConnectionIceErrorEventInit extends EventInit {
1279
+ address?: string | null;
1280
+ errorCode: number;
1281
+ errorText?: string;
1282
+ port?: number | null;
1283
+ url?: string;
1284
+ }
1285
+
1278
1286
interface RTCPeerConnectionIceEventInit extends EventInit {
1279
1287
candidate?: RTCIceCandidate | null;
1280
1288
url?: string | null;
@@ -4456,6 +4464,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4456
4464
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
4457
4465
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
4458
4466
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
4467
+ createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
4459
4468
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
4460
4469
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
4461
4470
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
@@ -11619,6 +11628,17 @@ declare var RTCPeerConnection: {
11619
11628
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
11620
11629
};
11621
11630
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
+
11622
11642
/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
11623
11643
interface RTCPeerConnectionIceEvent extends Event {
11624
11644
readonly candidate: RTCIceCandidate | null;
0 commit comments