Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Fixed duplicate comments #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,19 @@ async function createRoom() {
peerConnection = new RTCPeerConnection(configuration);

registerPeerConnectionListeners();

// Add code for creating a room here

// Code for creating room above

localStream.getTracks().forEach(track => {
peerConnection.addTrack(track, localStream);
});

// Code for creating a room below

// Code for creating a room above

// Code for collecting ICE candidates below

// Code for collecting ICE candidates above

// Code for creating a room below

// Code for creating a room above

peerConnection.addEventListener('track', event => {
console.log('Got remote track:', event.streams[0]);
event.streams[0].getTracks().forEach(track => {
Expand Down