Fix trash in webrtc.html

This commit is contained in:
Alexey Khit
2022-10-31 08:34:11 +03:00
parent 0dacdea1c3
commit 04f1aa2900
-5
View File
@@ -51,11 +51,6 @@
pc.addIceCandidate({candidate: msg.value, sdpMid: ''});
} else if (msg.type === 'webrtc/answer') {
pc.setRemoteDescription({type: 'answer', sdp: msg.value});
pc.getTransceivers().forEach(t => {
if (t.receiver.track.kind === 'audio') {
t.currentDirection
}
})
}
}