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

Unified Diff: webrtc/examples/objc/AppRTCDemo/ARDCEODTURNClient.m

Issue 1690313002: Update iOS AppRTCDemo to use the updated Objective-C API. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update against master Created 4 years, 9 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: webrtc/examples/objc/AppRTCDemo/ARDCEODTURNClient.m
diff --git a/webrtc/examples/objc/AppRTCDemo/ARDCEODTURNClient.m b/webrtc/examples/objc/AppRTCDemo/ARDCEODTURNClient.m
index 70f815a6a8bf9457961eab19fe34a55e830aaebd..5be33353188737b351cd5f910c3adacaa549ba6c 100644
--- a/webrtc/examples/objc/AppRTCDemo/ARDCEODTURNClient.m
+++ b/webrtc/examples/objc/AppRTCDemo/ARDCEODTURNClient.m
@@ -11,7 +11,7 @@
#import "ARDCEODTURNClient.h"
#import "ARDUtilities.h"
-#import "RTCICEServer+JSON.h"
+#import "RTCIceServer+JSON.h"
// TODO(tkchin): move this to a configuration object.
static NSString *kTURNOriginURLString = @"https://apprtc.appspot.com";
@@ -44,11 +44,11 @@ static NSInteger kARDCEODTURNClientErrorBadResponse = -1;
NSError *error) {
NSArray *turnServers = [NSArray array];
if (error) {
- completionHandler(turnServers, error);
+ completionHandler(nil, error);
return;
}
NSDictionary *dict = [NSDictionary dictionaryWithJSONData:data];
- turnServers = [RTCICEServer serversFromCEODJSONDictionary:dict];
+ turnServers = @[ [RTCIceServer serverFromCEODJSONDictionary:dict] ];
if (!turnServers) {
NSError *responseError =
[[NSError alloc] initWithDomain:kARDCEODTURNClientErrorDomain
« no previous file with comments | « webrtc/examples/objc/AppRTCDemo/ARDAppEngineClient.m ('k') | webrtc/examples/objc/AppRTCDemo/ARDJoinResponse.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698