Fix Firefox WebRTC support

This commit is contained in:
Alexey Khit
2022-12-18 22:38:44 +03:00
parent 4df44645d7
commit aca3bab238
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
console.debug('ws.onmessage', msg);
if (msg.type === 'webrtc/candidate') {
pc.addIceCandidate({candidate: msg.value, sdpMid: ''});
pc.addIceCandidate({candidate: msg.value, sdpMid: '0'});
} else if (msg.type === 'webrtc/answer') {
pc.setRemoteDescription({type: 'answer', sdp: msg.value});
}