1
0
Fork 0
mirror of https://api.glitch.com/git/yaswvc synced 2026-01-12 05:08:11 +00:00

🐦🍛 Checkpoint

./public/main.js:5975361/876
This commit is contained in:
Glitch (peerjs-video) 2020-09-09 08:28:17 +00:00
parent 684e163d96
commit 64a6e81e7d

View file

@ -3,9 +3,22 @@ var Peer = window.Peer;
var app = new Vue({ var app = new Vue({
el: '#app', el: '#app',
data: { 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'), { peer: new Peer(localStorage.getItem('yaswvc-peerId'), {
host: '/', 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, stream: null,
calls: [], calls: [],