| Index: webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m
|
| diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m
|
| index aa9ea2113d3ceaaba2b776495eb38cff23f4fcd5..d4008894d681fa7552737e0bbee8644f41931ac0 100644
|
| --- a/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m
|
| +++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m
|
| @@ -12,12 +12,13 @@
|
|
|
| #import "webrtc/modules/audio_device/ios/objc/RTCAudioSession.h"
|
|
|
| +#import "ARDAppClient.h"
|
| +#import "ARDMediaConstraintsModel.h"
|
| +#import "ARDVideoCallView.h"
|
| #import "WebRTC/RTCAVFoundationVideoSource.h"
|
| #import "WebRTC/RTCDispatcher.h"
|
| #import "WebRTC/RTCLogging.h"
|
| -
|
| -#import "ARDAppClient.h"
|
| -#import "ARDVideoCallView.h"
|
| +#import "WebRTC/RTCMediaConstraints.h"
|
|
|
| @interface ARDVideoCallViewController () <ARDAppClientDelegate,
|
| ARDVideoCallViewDelegate>
|
| @@ -45,6 +46,12 @@
|
| if (self = [super init]) {
|
| _delegate = delegate;
|
| _client = [[ARDAppClient alloc] initWithDelegate:self];
|
| + ARDMediaConstraintsModel *mediaConstraintsModel = [[ARDMediaConstraintsModel alloc] init];
|
| + RTCMediaConstraints *cameraConstraints = [[RTCMediaConstraints alloc]
|
| + initWithMandatoryConstraints:nil
|
| + optionalConstraints:[mediaConstraintsModel
|
| + currentMediaConstraintFromStoreAsRTCDictionary]];
|
| + [_client setCameraConstraints:cameraConstraints];
|
| [_client connectToRoomWithId:room
|
| isLoopback:isLoopback
|
| isAudioOnly:isAudioOnly
|
|
|