From 07c16691a27c8a783779977de91d7bddf7af8b83 Mon Sep 17 00:00:00 2001 From: Christoph Guttandin Date: Tue, 21 Nov 2023 11:49:31 +0100 Subject: [PATCH] fix: handle icecandidateerror events --- src/operators/negotiate-data-channels.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/operators/negotiate-data-channels.ts b/src/operators/negotiate-data-channels.ts index 89984c77..586c6694 100644 --- a/src/operators/negotiate-data-channels.ts +++ b/src/operators/negotiate-data-channels.ts @@ -172,6 +172,12 @@ export const negotiateDataChannels = ); } }), + on( + peerConnection, + 'icecandidateerror' + )(() => + errorSubject.next(new Error('RTCPeerConnection fired unexpected event of type "icecandidateerror".')) + ), on( peerConnection, 'iceconnectionstatechange'