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

Unified Diff: webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.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/RTCICECandidate+JSON.m
diff --git a/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m b/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m
index cf70b73c0745ef53160252e40a6ad5f1e7423085..773c346c6b6f13ed49544084e965886b67013b37 100644
--- a/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m
+++ b/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m
@@ -8,9 +8,9 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import "RTCICECandidate+JSON.h"
+#import "RTCIceCandidate+JSON.h"
-#import "RTCLogging.h"
+#import "webrtc/base/objc/RTCLogging.h"
static NSString const *kRTCICECandidateTypeKey = @"type";
static NSString const *kRTCICECandidateTypeValue = @"candidate";
@@ -18,14 +18,16 @@ static NSString const *kRTCICECandidateMidKey = @"id";
static NSString const *kRTCICECandidateMLineIndexKey = @"label";
static NSString const *kRTCICECandidateSdpKey = @"candidate";
-@implementation RTCICECandidate (JSON)
+@implementation RTCIceCandidate (JSON)
-+ (RTCICECandidate *)candidateFromJSONDictionary:(NSDictionary *)dictionary {
++ (RTCIceCandidate *)candidateFromJSONDictionary:(NSDictionary *)dictionary {
NSString *mid = dictionary[kRTCICECandidateMidKey];
NSString *sdp = dictionary[kRTCICECandidateSdpKey];
NSNumber *num = dictionary[kRTCICECandidateMLineIndexKey];
NSInteger mLineIndex = [num integerValue];
- return [[RTCICECandidate alloc] initWithMid:mid index:mLineIndex sdp:sdp];
+ return [[RTCIceCandidate alloc] initWithSdp:sdp
+ sdpMLineIndex:mLineIndex
+ sdpMid:mid];
}
- (NSData *)JSONData {
« no previous file with comments | « webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.h ('k') | webrtc/examples/objc/AppRTCDemo/RTCICEServer+JSON.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698