Index: webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.m |
diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.m |
index 61b5c506bd3bce9ace07d8db66a021ceeea97c18..eda02758198cfe7e5a2e09a5c89fd43ac1d6bc87 100644 |
--- a/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.m |
+++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.m |
@@ -29,11 +29,11 @@ static NSArray<NSString *> *videoResolutionsStaticValues() { |
} |
- (NSString *)currentVideoResoultionConstraintFromStore { |
- NSString *constraint = [[self settingsStore] videoResolutionConstraintsSetting]; |
+ NSString *constraint = [[self settingsStore] videoResolutionConstraints]; |
if (!constraint) { |
constraint = [self defaultVideoResolutionMediaConstraint]; |
// To ensure consistency add the default to the store. |
- [[self settingsStore] setVideoResolutionConstraintsSetting:constraint]; |
+ [[self settingsStore] setVideoResolutionConstraints:constraint]; |
} |
return constraint; |
} |
@@ -42,10 +42,18 @@ static NSArray<NSString *> *videoResolutionsStaticValues() { |
if (![[self availableVideoResoultionsMediaConstraints] containsObject:constraint]) { |
return NO; |
} |
- [[self settingsStore] setVideoResolutionConstraintsSetting:constraint]; |
+ [[self settingsStore] setVideoResolutionConstraints:constraint]; |
return YES; |
} |
+- (nullable NSNumber *)currentMaxBitrateSettingFromStore { |
+ return [[self settingsStore] maxBitrate]; |
+} |
+ |
+- (void)storeMaxBitrateSetting:(nullable NSNumber *)bitrate { |
+ [[self settingsStore] setMaxBitrate:bitrate]; |
+} |
+ |
#pragma mark - Testable |
- (ARDSettingsStore *)settingsStore { |