Created
June 11, 2015 09:05
-
-
Save ncurrier/7874a5fdccb1bd9f82f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
skylink.on('peerJoined', function(peerId, peerInfo, isSelf) { | |
if(isSelf) return; // We already have a video element for our video and don't need to create a new one. | |
var vid = document.createElement('video'); | |
vid.autoplay = true; | |
vid.muted = true; // Added to avoid feedback when testing locally | |
vid.id = peerId; | |
document.body.appendChild(vid); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment