From fee0409f63bce799264e7b8a2a7b135a96b46fc7 Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Mon, 24 Mar 2025 08:59:21 -0300 Subject: [PATCH] Logging if the remote peer supports trickle ice. --- .../client/typescript/src/smallWebRTCTransport.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/aiortc/video-transform/client/typescript/src/smallWebRTCTransport.ts b/examples/aiortc/video-transform/client/typescript/src/smallWebRTCTransport.ts index 676f6caf9..cad68f5bc 100644 --- a/examples/aiortc/video-transform/client/typescript/src/smallWebRTCTransport.ts +++ b/examples/aiortc/video-transform/client/typescript/src/smallWebRTCTransport.ts @@ -52,7 +52,7 @@ export class SmallWebRTCTransport { private createPeerConnection(): RTCPeerConnection { const config: RTCConfiguration = { - //iceServers: [{ urls: ['stun:stun.l.google.com:19302'] }] + iceServers: [{ urls: ['stun:stun.l.google.com:19302'] }] }; let pc = new RTCPeerConnection(config); @@ -208,6 +208,7 @@ export class SmallWebRTCTransport { // @ts-ignore this.log(`Received answer for peer connection id ${answer.pc_id}`) await this.pc!.setRemoteDescription(answer); + this.log(`Remote candidate supports trickle ice: ${this.pc.canTrickleIceCandidates}`) } catch (e) { this.log(`Reconnection attempt ${this.reconnectionAttempts} failed: ${e}`); this.isReconnecting = false