Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.m

Issue 2492693003: Propagate bitrate setting to RTCRtpSender. (Closed)
Patch Set: Replace UITextFieldDelegate method with method with lesser availability value Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 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 28 matching lines...) Expand all
39 } 39 }
40 40
41 - (BOOL)storeVideoResoultionConstraint:(NSString *)constraint { 41 - (BOOL)storeVideoResoultionConstraint:(NSString *)constraint {
42 if (![[self availableVideoResoultionsMediaConstraints] containsObject:constrai nt]) { 42 if (![[self availableVideoResoultionsMediaConstraints] containsObject:constrai nt]) {
43 return NO; 43 return NO;
44 } 44 }
45 [[self settingsStore] setVideoResolutionConstraintsSetting:constraint]; 45 [[self settingsStore] setVideoResolutionConstraintsSetting:constraint];
46 return YES; 46 return YES;
47 } 47 }
48 48
49 - (nullable NSNumber *)currentMaxBitrateSettingFromStore {
50 return [[self settingsStore] maxBitrateSetting];
51 }
52
53 - (void)storeMaxBitrateSetting:(nullable NSNumber *)bitrate {
54 [[self settingsStore] setMaxBitrateSetting:bitrate];
55 }
56
49 #pragma mark - Testable 57 #pragma mark - Testable
50 58
51 - (ARDSettingsStore *)settingsStore { 59 - (ARDSettingsStore *)settingsStore {
52 if (!_settingsStore) { 60 if (!_settingsStore) {
53 _settingsStore = [[ARDSettingsStore alloc] init]; 61 _settingsStore = [[ARDSettingsStore alloc] init];
54 } 62 }
55 return _settingsStore; 63 return _settingsStore;
56 } 64 }
57 65
58 - (nullable NSString *)currentVideoResolutionWidthFromStore { 66 - (nullable NSString *)currentVideoResolutionWidthFromStore {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 mediaConstraintsDictionary = @{ 103 mediaConstraintsDictionary = @{
96 kRTCMediaConstraintsMinWidth : widthConstraint, 104 kRTCMediaConstraintsMinWidth : widthConstraint,
97 kRTCMediaConstraintsMinHeight : heightConstraint 105 kRTCMediaConstraintsMinHeight : heightConstraint
98 }; 106 };
99 } 107 }
100 return mediaConstraintsDictionary; 108 return mediaConstraintsDictionary;
101 } 109 }
102 110
103 @end 111 @end
104 NS_ASSUME_NONNULL_END 112 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698