Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(891)

Unified Diff: talk/app/webrtc/objc/RTCPeerConnection.mm

Issue 1361263002: Revert of Adding PeerConnectionInterface::SetConfiguration method. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {
« no previous file with comments | « talk/app/webrtc/java/src/org/webrtc/PeerConnection.java ('k') | talk/app/webrtc/objc/public/RTCPeerConnection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698