Index: webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m |
diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m |
index 63f5c43483ba48f19bedafe9a1b331850dcc6917..0abcc1efbb1cc11e0d699a4d726bb846320fd447 100644 |
--- a/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m |
+++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m |
@@ -9,7 +9,7 @@ |
*/ |
#import "ARDSettingsViewController.h" |
-#import "ARDMediaConstraintsModel.h" |
+#import "ARDSettingsModel.h" |
NS_ASSUME_NONNULL_BEGIN |
@@ -19,7 +19,7 @@ typedef NS_ENUM(int, ARDSettingsSections) { |
}; |
@interface ARDSettingsViewController () { |
- ARDMediaConstraintsModel *_mediaConstraintsModel; |
+ ARDSettingsModel *_settingsModel; |
} |
@end |
@@ -27,10 +27,10 @@ typedef NS_ENUM(int, ARDSettingsSections) { |
@implementation ARDSettingsViewController |
- (instancetype)initWithStyle:(UITableViewStyle)style |
- mediaConstraintsModel:(ARDMediaConstraintsModel *)mediaConstraintsModel { |
+ settingsModel:(ARDSettingsModel *)settingsModel { |
self = [super initWithStyle:style]; |
if (self) { |
- _mediaConstraintsModel = mediaConstraintsModel; |
+ _settingsModel = settingsModel; |
} |
return self; |
} |
@@ -51,7 +51,7 @@ typedef NS_ENUM(int, ARDSettingsSections) { |
#pragma mark - Data source |
- (NSArray<NSString *> *)mediaConstraintsArray { |
- return _mediaConstraintsModel.availableVideoResoultionsMediaConstraints; |
+ return _settingsModel.availableVideoResoultionsMediaConstraints; |
} |
#pragma mark - |
@@ -65,7 +65,7 @@ typedef NS_ENUM(int, ARDSettingsSections) { |
} |
- (void)selectCurrentlyStoredOrDefaultMediaConstraints { |
- NSString *currentSelection = [_mediaConstraintsModel currentVideoResoultionConstraintFromStore]; |
+ NSString *currentSelection = [_settingsModel currentVideoResoultionConstraintFromStore]; |
NSUInteger indexOfSelection = [[self mediaConstraintsArray] indexOfObject:currentSelection]; |
NSIndexPath *pathToBeSelected = [NSIndexPath indexPathForRow:indexOfSelection inSection:0]; |
@@ -177,7 +177,7 @@ typedef NS_ENUM(int, ARDSettingsSections) { |
cell.accessoryType = UITableViewCellAccessoryCheckmark; |
NSString *mediaConstraintsString = self.mediaConstraintsArray[indexPath.row]; |
- [_mediaConstraintsModel storeVideoResoultionConstraint:mediaConstraintsString]; |
+ [_settingsModel storeVideoResoultionConstraint:mediaConstraintsString]; |
} |
- (NSIndexPath *)tableView:(UITableView *)tableView |