There was an error while loading. Please reload this page.
2 parents c0d7d79 + 08a2fac commit b387430Copy full SHA for b387430
js/plainwebrtc.js
@@ -17,6 +17,7 @@ function enableChat() {
17
}
18
enableChat();
19
20
+
21
navigator.mediaDevices.getUserMedia({ audio: true, video: true }).then(stream => {
22
localStream = stream;
23
micused.innerHTML = localStream.getAudioTracks()[0].label;
@@ -57,6 +58,7 @@ pc.onicecandidate = function(e) {
57
58
pc.oniceconnectionstatechange = function() {
59
console.log('iceconnectionstatechange: ', pc.iceConnectionState);
60
61
62
pc.onaddstream = function(e) {
63
console.log('remote onaddstream', e.stream);
64
remote.srcObject = e.stream;
0 commit comments