mirror of
https://api.glitch.com/git/yaswvc
synced 2026-01-12 03:18:10 +00:00
🌄👸 Checkpoint
./public/index.html:5975361/6 ./public/main.js:5975361/296
This commit is contained in:
parent
9bc41435e3
commit
684e163d96
2 changed files with 5 additions and 1 deletions
|
|
@ -49,7 +49,7 @@
|
|||
<!-- self -->
|
||||
<div class="col-6">
|
||||
<div class="card text-dark">
|
||||
<video id="localVideo" class="card-img-top" autoplay></video>
|
||||
<video id="localVideo" class="card-img-top" autoplay muted></video>
|
||||
<div class="card-body">
|
||||
<details>
|
||||
<summary class="card-title">It'se me!</summary>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,10 @@ 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue