|
|
@ -243,7 +243,11 @@ define(['jquery', 'underscore', 'mediastream/utils', 'mediastream/peerconnection |
|
|
|
// Avoid errors when still receiving candidates but closed.
|
|
|
|
// Avoid errors when still receiving candidates but closed.
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this.peerconnection.addIceCandidate(candidate); |
|
|
|
this.peerconnection.addIceCandidate(candidate, function() { |
|
|
|
|
|
|
|
//console.log("Remote candidate added successfully.", candidate);
|
|
|
|
|
|
|
|
}, function(error) { |
|
|
|
|
|
|
|
console.warn("Failed to add remote candidate:", error, candidate); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|