Index: webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m |
diff --git a/webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m b/webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m |
index 089901efda60b6726f77aff9a174425f50c3b339..0be9089c093e45e31f9ba5b44619152599a89813 100644 |
--- a/webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m |
+++ b/webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m |
@@ -17,6 +17,7 @@ |
#import "WebRTC/RTCVideoTrack.h" |
#import "ARDAppClient.h" |
+#import "ARDCaptureController.h" |
#import "ARDSettingsModel.h" |
static NSUInteger const kContentWidth = 900; |
@@ -299,6 +300,7 @@ static NSUInteger const kBottomViewHeight = 200; |
ARDAppClient* _client; |
RTCVideoTrack* _localVideoTrack; |
RTCVideoTrack* _remoteVideoTrack; |
+ ARDCaptureController* _captureController; |
} |
- (void)dealloc { |
@@ -353,6 +355,14 @@ static NSUInteger const kBottomViewHeight = 200; |
didChangeConnectionState:(RTCIceConnectionState)state { |
} |
+- (void)appClient:(ARDAppClient*)client |
+ didCreateLocalCapturer:(RTCCameraVideoCapturer*)localCapturer { |
+ _captureController = |
+ [[ARDCaptureController alloc] initWithCapturer:localCapturer |
+ settings:[[ARDSettingsModel alloc] init]]; |
+ [_captureController startCapture]; |
+} |
+ |
- (void)appClient:(ARDAppClient *)client |
didReceiveLocalVideoTrack:(RTCVideoTrack *)localVideoTrack { |
_localVideoTrack = localVideoTrack; |