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: [],