OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 shouldUseLevelControl:(BOOL)shouldUseLevelControl | 44 shouldUseLevelControl:(BOOL)shouldUseLevelControl |
45 delegate:(id<ARDVideoCallViewControllerDelegate>)delegate { | 45 delegate:(id<ARDVideoCallViewControllerDelegate>)delegate { |
46 if (self = [super init]) { | 46 if (self = [super init]) { |
47 _delegate = delegate; | 47 _delegate = delegate; |
48 _client = [[ARDAppClient alloc] initWithDelegate:self]; | 48 _client = [[ARDAppClient alloc] initWithDelegate:self]; |
49 ARDSettingsModel *settingsModel = [[ARDSettingsModel alloc] init]; | 49 ARDSettingsModel *settingsModel = [[ARDSettingsModel alloc] init]; |
50 RTCMediaConstraints *cameraConstraints = [[RTCMediaConstraints alloc] | 50 RTCMediaConstraints *cameraConstraints = [[RTCMediaConstraints alloc] |
51 initWithMandatoryConstraints:nil | 51 initWithMandatoryConstraints:nil |
52 optionalConstraints:[settingsModel | 52 optionalConstraints:[settingsModel |
53 currentMediaConstraintFromStoreAsRTCDic
tionary]]; | 53 currentMediaConstraintFromStoreAsRTCDic
tionary]]; |
| 54 [_client setMaxBitrate:[settingsModel currentMaxBitrateSettingFromStore]]; |
54 [_client setCameraConstraints:cameraConstraints]; | 55 [_client setCameraConstraints:cameraConstraints]; |
55 [_client connectToRoomWithId:room | 56 [_client connectToRoomWithId:room |
56 isLoopback:isLoopback | 57 isLoopback:isLoopback |
57 isAudioOnly:isAudioOnly | 58 isAudioOnly:isAudioOnly |
58 shouldMakeAecDump:shouldMakeAecDump | 59 shouldMakeAecDump:shouldMakeAecDump |
59 shouldUseLevelControl:shouldUseLevelControl]; | 60 shouldUseLevelControl:shouldUseLevelControl]; |
60 } | 61 } |
61 return self; | 62 return self; |
62 } | 63 } |
63 | 64 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 - (void)showAlertWithMessage:(NSString*)message { | 221 - (void)showAlertWithMessage:(NSString*)message { |
221 UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil | 222 UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil |
222 message:message | 223 message:message |
223 delegate:nil | 224 delegate:nil |
224 cancelButtonTitle:@"OK" | 225 cancelButtonTitle:@"OK" |
225 otherButtonTitles:nil]; | 226 otherButtonTitles:nil]; |
226 [alertView show]; | 227 [alertView show]; |
227 } | 228 } |
228 | 229 |
229 @end | 230 @end |
OLD | NEW |