Skip to content

Commit

Permalink
Merge pull request webrtc#1539 from fippo/too-verbose-logging
Browse files Browse the repository at this point in the history
webaudio-input: remove too verbose logging
  • Loading branch information
fippo authored Apr 7, 2022
2 parents f70ec9b + 6951a8a commit bca762b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/content/peerconnection/webaudio-input/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,15 @@ function gotDescription1(desc) {
console.log(`Offer from pc1\n${desc.sdp}`);

pc1.setLocalDescription(desc);
console.log(`Offer from pc1\n${desc.sdp}`);
pc2.setRemoteDescription(desc);
pc2.createAnswer()
.then(gotDescription2)
.catch(error => logError(`createAnswer failed: ${error}`));
}

function gotDescription2(desc) {
pc2.setLocalDescription(desc);
console.log(`Answer from pc2\n${desc.sdp}`);
pc2.setLocalDescription(desc);
pc1.setRemoteDescription(desc);
}

Expand Down

0 comments on commit bca762b

Please sign in to comment.