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

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

Issue 1317353005: Adding PeerConnectionInterface::SetConfiguration method. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Deleting some unused code, and adding TODO for pending deletion 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 0d30acc0eb23ba6b00c8ea16eacfba8cf7d78fbc..44d39cb0902deede6d7e7ff403289a7ae697e090 100644
--- a/talk/app/webrtc/objc/RTCPeerConnection.mm
+++ b/talk/app/webrtc/objc/RTCPeerConnection.mm
@@ -208,13 +208,9 @@ class RTCStatsObserver : public StatsObserver {
self.peerConnection->SetRemoteDescription(observer, sdp.sessionDescription);
}
-- (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);
+- (BOOL)setConfiguration:(RTCConfiguration *)configuration {
+ return self.peerConnection->SetConfiguration(
+ configuration.nativeConfiguration);
}
- (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