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 9e17951f07f587d71d43372e8dd2a730c93e6155..f58ee6613c435cca2403bf43ffdc01c983494362 100644 |
--- a/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m |
+++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m |
@@ -44,9 +44,11 @@ |
shouldUseLevelControl:(BOOL)shouldUseLevelControl |
delegate:(id<ARDVideoCallViewControllerDelegate>)delegate { |
if (self = [super init]) { |
- _delegate = delegate; |
- _client = [[ARDAppClient alloc] initWithDelegate:self]; |
ARDSettingsModel *settingsModel = [[ARDSettingsModel alloc] init]; |
+ NSString* videoCodec = [settingsModel currentVideoCodecSettingFromStore]; |
+ _delegate = delegate; |
+ _client = [[ARDAppClient alloc] initWithDelegate:self |
+ preferVideoCodec:videoCodec]; |
RTCMediaConstraints *cameraConstraints = [[RTCMediaConstraints alloc] |
initWithMandatoryConstraints:nil |
optionalConstraints:[settingsModel |