|
@ -151,6 +151,12 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (msg.sid == null || msg.sid != socket.id) { |
|
|
|
|
|
console.log("ignoring message for unknown sid"); |
|
|
|
|
|
console.log(socket.id); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!webrtcPeerConnection) { |
|
|
if (!webrtcPeerConnection) { |
|
|
webrtcPeerConnection = new RTCPeerConnection(webrtcConfiguration); |
|
|
webrtcPeerConnection = new RTCPeerConnection(webrtcConfiguration); |
|
|
webrtcPeerConnection.ontrack = onAddRemoteStream; |
|
|
webrtcPeerConnection.ontrack = onAddRemoteStream; |
|
|