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 d4008894d681fa7552737e0bbee8644f41931ac0..5e058662b05d6ed14a8059e5a189a896222ed2b9 100644 |
--- a/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m |
+++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m |
@@ -13,7 +13,7 @@ |
#import "webrtc/modules/audio_device/ios/objc/RTCAudioSession.h" |
#import "ARDAppClient.h" |
-#import "ARDMediaConstraintsModel.h" |
+#import "ARDSettingsModel.h" |
#import "ARDVideoCallView.h" |
#import "WebRTC/RTCAVFoundationVideoSource.h" |
#import "WebRTC/RTCDispatcher.h" |
@@ -46,10 +46,10 @@ |
if (self = [super init]) { |
_delegate = delegate; |
_client = [[ARDAppClient alloc] initWithDelegate:self]; |
- ARDMediaConstraintsModel *mediaConstraintsModel = [[ARDMediaConstraintsModel alloc] init]; |
+ ARDSettingsModel *settingsModel = [[ARDSettingsModel alloc] init]; |
RTCMediaConstraints *cameraConstraints = [[RTCMediaConstraints alloc] |
initWithMandatoryConstraints:nil |
- optionalConstraints:[mediaConstraintsModel |
+ optionalConstraints:[settingsModel |
currentMediaConstraintFromStoreAsRTCDictionary]]; |
[_client setCameraConstraints:cameraConstraints]; |
[_client connectToRoomWithId:room |