Index: remoting/protocol/libjingle_transport_factory.cc |
diff --git a/remoting/protocol/libjingle_transport_factory.cc b/remoting/protocol/libjingle_transport_factory.cc |
index fa497cb1d915f7634a55d94f168ff1efb61efe02..151d329f85827c3aeb27ba02df9c58344b0f1790 100644 |
--- a/remoting/protocol/libjingle_transport_factory.cc |
+++ b/remoting/protocol/libjingle_transport_factory.cc |
@@ -150,6 +150,8 @@ void LibjingleTransport::OnCanStart() { |
DoStart(); |
while (!pending_candidates_.empty()) { |
+ channel_->SetRemoteIceCredentials(pending_candidates_.front().username(), |
+ pending_candidates_.front().password()); |
jiayl
2015/04/15 20:13:00
Do all candidates share the same username/password
Sergey Ulanov
2015/04/15 20:49:34
Credentials may change when the remote peer restar
|
channel_->OnCandidate(pending_candidates_.front()); |
pending_candidates_.pop_front(); |
} |
@@ -228,6 +230,8 @@ void LibjingleTransport::AddRemoteCandidate( |
return; |
if (channel_) { |
+ channel_->SetRemoteIceCredentials(candidate.username(), |
+ candidate.password()); |
channel_->OnCandidate(candidate); |
} else { |
pending_candidates_.push_back(candidate); |