Index: talk/app/webrtc/objc/RTCPeerConnection.mm |
diff --git a/talk/app/webrtc/objc/RTCPeerConnection.mm b/talk/app/webrtc/objc/RTCPeerConnection.mm |
index 44d39cb0902deede6d7e7ff403289a7ae697e090..0d30acc0eb23ba6b00c8ea16eacfba8cf7d78fbc 100644 |
--- a/talk/app/webrtc/objc/RTCPeerConnection.mm |
+++ b/talk/app/webrtc/objc/RTCPeerConnection.mm |
@@ -208,9 +208,13 @@ |
self.peerConnection->SetRemoteDescription(observer, sdp.sessionDescription); |
} |
-- (BOOL)setConfiguration:(RTCConfiguration *)configuration { |
- return self.peerConnection->SetConfiguration( |
- configuration.nativeConfiguration); |
+- (BOOL)updateICEServers:(NSArray*)servers |
+ constraints:(RTCMediaConstraints*)constraints { |
+ webrtc::PeerConnectionInterface::IceServers iceServers; |
+ for (RTCICEServer* server in servers) { |
+ iceServers.push_back(server.iceServer); |
+ } |
+ return self.peerConnection->UpdateIce(iceServers, constraints.constraints); |
} |
- (RTCSessionDescription*)localDescription { |