From 64a6e81e7d4e263bb08bdcbbad555c033c4489dd Mon Sep 17 00:00:00 2001 From: "Glitch (peerjs-video)" Date: Wed, 9 Sep 2020 08:28:17 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=A6=F0=9F=8D=9B=20Checkpoint=20./publi?= =?UTF-8?q?c/main.js:5975361/876?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/main.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/public/main.js b/public/main.js index 7607500..3c1e67f 100644 --- a/public/main.js +++ b/public/main.js @@ -3,9 +3,22 @@ var Peer = window.Peer; var app = new Vue({ el: '#app', data: { + // peerConfig: { + // default: { 'iceServers': [{ 'urls': 'stun:stun.l.google.com:19302' }], 'sdpSemantics': 'unified-plan' }, + // turn: { 'iceServers': [{ 'urls': 'stun:stun.l.google.com:19302' }, { + // url: 'turn:numb.viagenie.ca', + // credential: 'muazkh', + // username: 'webrtc@live.com' + // }], 'sdpSemantics': 'unified-plan' }, + // }, peer: new Peer(localStorage.getItem('yaswvc-peerId'), { host: '/', - path: '/peerjs/myapp' + path: '/peerjs/myapp', + config: { 'iceServers': [{ 'urls': 'stun:stun.l.google.com:19302' }, { + url: 'turn:numb.viagenie.ca', + credential: 'muazkh', + username: 'webrtc@live.com' + }], 'sdpSemantics': 'unified-plan' } }), stream: null, calls: [],