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

Compare commits

..

No commits in common. "6ace8df5d44ecb1ba343589d848c485208d235b2" and "9bc41435e33916a63726b1fa98a305c370c28f4b" have entirely different histories.

2 changed files with 2 additions and 28 deletions

View file

@ -49,7 +49,7 @@
<!-- self -->
<div class="col-6">
<div class="card text-dark">
<video id="localVideo" class="card-img-top" autoplay muted></video>
<video id="localVideo" class="card-img-top" autoplay></video>
<div class="card-body">
<details>
<summary class="card-title">It'se me!</summary>

View file

@ -5,29 +5,7 @@ var app = new Vue({
data: {
peer: new Peer(localStorage.getItem('yaswvc-peerId'), {
host: '/',
path: '/peerjs/myapp',
config: {
'iceServers': [
{ urls: 'stun:stun.l.google.com:19302' },
{ urls: 'stun:stun.stunprotocol.org:3478' },
{ urls: 'stun:stun.sipnet.net:3478' },
{ urls: 'stun:stun.ideasip.com:3478' },
{ urls: 'stun:stun.iptel.org:3478' },
{ urls: 'turn:numb.viagenie.ca', username: 'imvasanthv@gmail.com', credential: 'd0ntuseme' },
{
urls: [
'turn:173.194.72.127:19305?transport=udp',
'turn:[2404:6800:4008:C01::7F]:19305?transport=udp',
'turn:173.194.72.127:443?transport=tcp',
'turn:[2404:6800:4008:C01::7F]:443?transport=tcp'
],
username: 'CKjCuLwFEgahxNRjuTAYzc/s6OMT',
credential: 'u1SQDR/SQsPQIxXNWQT7czc/G4c='
}
],
'sdpSemantics': 'unified-plan',
},
debug: 3
path: '/peerjs/myapp'
}),
stream: null,
calls: [],
@ -44,10 +22,6 @@ var app = new Vue({
document.querySelector(selector).srcObject = stream;
},
connectToPeer: function(peerId) {
if (peerId === this.peer.id) {
this.logMessage(`You played yourself! Can't connect to yourself.`);
return;
};
this.logMessage(`Connecting to ${peerId}...`);
let conn = this.peer.connect(peerId);