From a8906e2039dba643742f9c71e9de644425e0246d Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Fri, 26 Feb 2021 12:10:07 -0500 Subject: [PATCH] Custom turn server settings --- front/src/WebRtc/SimplePeer.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/front/src/WebRtc/SimplePeer.ts b/front/src/WebRtc/SimplePeer.ts index da1ae3d..1a32f6a 100644 --- a/front/src/WebRtc/SimplePeer.ts +++ b/front/src/WebRtc/SimplePeer.ts @@ -109,14 +109,12 @@ export class SimplePeer { config: { iceServers: [ { - urls: 'stun:stun.l.google.com:19302' + urls: 'turn:turn.testansible.fsf.org:3478', + username: 'user', + credential: 'password' }, - { - urls: 'turn:numb.viagenie.ca', - username: 'g.parant@thecodingmachine.com', - credential: 'itcugcOHxle9Acqi$' - }, - ] + ], + iceTransportPolicy: "relay" }, }); this.PeerConnectionArray.set(user.userId, peer); -- 2.25.1