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

Unified Diff: webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.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/ios/ARDVideoCallViewController.m
diff --git a/webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m b/webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m
index 9bf4c07daebcb4bb379a84a7f2f0101a909b6381..5fad762aa6bd7204fd957f871cc696062a46762b 100644
--- a/webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m
+++ b/webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m
@@ -13,8 +13,8 @@
#import "webrtc/base/objc/RTCDispatcher.h"
#import "webrtc/modules/audio_device/ios/objc/RTCAudioSession.h"
-#import "RTCAVFoundationVideoSource.h"
-#import "RTCLogging.h"
+#import "webrtc/api/objc/RTCAVFoundationVideoSource.h"
+#import "webrtc/base/objc/RTCLogging.h"
#import "ARDAppClient.h"
#import "ARDVideoCallView.h"
@@ -51,7 +51,7 @@
_videoCallView = [[ARDVideoCallView alloc] initWithFrame:CGRectZero];
_videoCallView.delegate = self;
_videoCallView.statusLabel.text =
- [self statusTextForState:RTCICEConnectionNew];
+ [self statusTextForState:RTCIceConnectionStateNew];
self.view = _videoCallView;
}
@@ -74,8 +74,8 @@
}
- (void)appClient:(ARDAppClient *)client
- didChangeConnectionState:(RTCICEConnectionState)state {
- RTCLog(@"ICE state changed: %d", state);
+ didChangeConnectionState:(RTCIceConnectionState)state {
+ RTCLog(@"ICE state changed: %ld", (long)state);
__weak ARDVideoCallViewController *weakSelf = self;
dispatch_async(dispatch_get_main_queue(), ^{
ARDVideoCallViewController *strongSelf = weakSelf;
@@ -193,17 +193,17 @@
}
}
-- (NSString *)statusTextForState:(RTCICEConnectionState)state {
+- (NSString *)statusTextForState:(RTCIceConnectionState)state {
switch (state) {
- case RTCICEConnectionNew:
- case RTCICEConnectionChecking:
+ case RTCIceConnectionStateNew:
+ case RTCIceConnectionStateChecking:
return @"Connecting...";
- case RTCICEConnectionConnected:
- case RTCICEConnectionCompleted:
- case RTCICEConnectionFailed:
- case RTCICEConnectionDisconnected:
- case RTCICEConnectionClosed:
- case RTCICEConnectionMax:
+ case RTCIceConnectionStateConnected:
+ case RTCIceConnectionStateCompleted:
+ case RTCIceConnectionStateFailed:
+ case RTCIceConnectionStateDisconnected:
+ case RTCIceConnectionStateClosed:
+ case RTCIceConnectionStateMax:
return nil;
}
}
« no previous file with comments | « webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallView.h ('k') | webrtc/examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698