diff --git a/webrtc-dotnetcore/wwwroot/js/webrtc.js b/webrtc-dotnetcore/wwwroot/js/webrtc.js index ca63c87..abd93bf 100644 --- a/webrtc-dotnetcore/wwwroot/js/webrtc.js +++ b/webrtc-dotnetcore/wwwroot/js/webrtc.js @@ -208,7 +208,9 @@ function signalingMessageCallback(message) { } else if (message.type === 'candidate') { peerConn.addIceCandidate(new RTCIceCandidate({ - candidate: message.candidate + candidate: message.candidate, + sdpMLineIndex: message.label, + sdpMid: message.id })); } @@ -361,4 +363,4 @@ function logError(err) { } else { console.warn(err.toString(), err); } -} \ No newline at end of file +}