File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
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,10 +160,10 @@ function signalingMessageCallback(message) {
160
160
161
161
} else if ( message . type === 'candidate' ) {
162
162
peerConn . addIceCandidate ( new RTCIceCandidate ( {
163
- sdpMLineIndex : message . label ,
163
+ candidate : message . candidate ,
164
164
sdpMid : message . id ,
165
- candidate : message . candidate
166
- } ) ) ; // Firefox compatible
165
+ sdpMLineIndex : message . label ,
166
+ } ) ) ;
167
167
168
168
} else if ( message === 'bye' ) {
169
169
// TODO: cleanup RTC connection?
You can’t perform that action at this time.
0 commit comments