From: Ruben Rodriguez Date: Fri, 26 Feb 2021 17:10:07 +0000 (-0500) Subject: Custom turn server settings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a8906e2039dba643742f9c71e9de644425e0246d;p=libreadventure.git Custom turn server settings --- 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);