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 51290a05b585bed47fe4074f17bf80b0cbec5026..cbeca647f0617dd819bf7e45c4005b3f013844a8 100644 |
--- a/webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m |
+++ b/webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m |
@@ -10,8 +10,8 @@ |
#import "ARDVideoCallViewController.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" |
@@ -47,7 +47,7 @@ |
_videoCallView = [[ARDVideoCallView alloc] initWithFrame:CGRectZero]; |
_videoCallView.delegate = self; |
_videoCallView.statusLabel.text = |
- [self statusTextForState:RTCICEConnectionNew]; |
+ [self statusTextForState:RTCIceConnectionStateNew]; |
self.view = _videoCallView; |
} |
@@ -70,8 +70,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; |
@@ -169,17 +169,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; |
} |
} |