diff --git a/src/content/peerconnection/constraints/js/main.js b/src/content/peerconnection/constraints/js/main.js index 9f55c77f3..74fa61f04 100644 --- a/src/content/peerconnection/constraints/js/main.js +++ b/src/content/peerconnection/constraints/js/main.js @@ -151,8 +151,8 @@ function createPeerConnection() { remotePeerConnection = new RTCPeerConnection(null); localStream.getTracks().forEach(track => localPeerConnection.addTrack(track, localStream)); console.log('localPeerConnection creating offer'); - localPeerConnection.onnegotiationeeded = () => console.log('Negotiation needed - localPeerConnection'); - remotePeerConnection.onnegotiationeeded = () => console.log('Negotiation needed - remotePeerConnection'); + localPeerConnection.onnegotiationneeded = () => console.log('Negotiation needed - localPeerConnection'); + remotePeerConnection.onnegotiationneeded = () => console.log('Negotiation needed - remotePeerConnection'); localPeerConnection.onicecandidate = e => { console.log('Candidate localPeerConnection'); remotePeerConnection diff --git a/src/content/peerconnection/old-new-stats/js/main.js b/src/content/peerconnection/old-new-stats/js/main.js index 4db1c08c8..3d525c422 100644 --- a/src/content/peerconnection/old-new-stats/js/main.js +++ b/src/content/peerconnection/old-new-stats/js/main.js @@ -136,10 +136,10 @@ document.addEventListener('DOMContentLoaded', async () => { remotePeerConnection = new RTCPeerConnection(null); localStream.getTracks().forEach(track => localPeerConnection.addTrack(track, localStream)); console.log('localPeerConnection creating offer'); - localPeerConnection.onnegotiationeeded = () => { + localPeerConnection.onnegotiationneeded = () => { console.log('Negotiation needed - localPeerConnection'); }; - remotePeerConnection.onnegotiationeeded = () => { + remotePeerConnection.onnegotiationneeded = () => { console.log('Negotiation needed - remotePeerConnection'); }; @@ -270,4 +270,4 @@ document.addEventListener('DOMContentLoaded', async () => { // Start it all up displayGetUserMediaConstraints(); -}); \ No newline at end of file +});