File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,9 @@ socket.on('message', function(message) {
79
79
pc . setRemoteDescription ( new RTCSessionDescription ( message ) ) ;
80
80
} else if ( message . type === 'candidate' && isStarted ) {
81
81
var candidate = new RTCIceCandidate ( {
82
+ candidate : message . candidate ,
83
+ sdpMid : message . id ,
82
84
sdpMLineIndex : message . label ,
83
- candidate : message . candidate
84
85
} ) ;
85
86
pc . addIceCandidate ( candidate ) ;
86
87
} else if ( message === 'bye' && isStarted ) {
Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ function signalingMessageCallback(message) {
160
160
161
161
} else if ( message . type === 'candidate' ) {
162
162
peerConn . addIceCandidate ( new RTCIceCandidate ( {
163
- candidate : message . candidate
163
+ candidate : message . candidate ,
164
+ sdpMid : message . id ,
165
+ sdpMLineIndex : message . label ,
164
166
} ) ) ;
165
167
166
168
} else if ( message === 'bye' ) {
You can’t perform that action at this time.
0 commit comments