Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion step-05/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ socket.on('message', function(message) {
pc.setRemoteDescription(new RTCSessionDescription(message));
} else if (message.type === 'candidate' && isStarted) {
var candidate = new RTCIceCandidate({
candidate: message.candidate,
sdpMid: message.id,
sdpMLineIndex: message.label,
candidate: message.candidate
});
pc.addIceCandidate(candidate);
} else if (message === 'bye' && isStarted) {
Expand Down
4 changes: 3 additions & 1 deletion step-06/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ function signalingMessageCallback(message) {

} else if (message.type === 'candidate') {
peerConn.addIceCandidate(new RTCIceCandidate({
candidate: message.candidate
candidate: message.candidate,
sdpMid: message.id,
sdpMLineIndex: message.label,
}));

} else if (message === 'bye') {
Expand Down