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

Unified Diff: webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m

Issue 2462623002: Add setting to AppRTCMobile for iOS, that can change capture resolution. (Closed)
Patch Set: Address comments 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
index f7e03bc72f318e7784ae589ceb791655983cb765..33ff8fa9c6f1ea7581f610163ae0ddb1206914da 100644
--- a/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
+++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
@@ -19,9 +19,11 @@
#import "ARDAppClient.h"
#import "ARDMainView.h"
+#import "ARDMediaConstraintsModel.h"
+#import "ARDSettingsViewController.h"
#import "ARDVideoCallViewController.h"
-static NSString *barButtonImageString = @"ic_settings_black_24dp.png";
+static NSString *const barButtonImageString = @"ic_settings_black_24dp.png";
@interface ARDMainViewController () <
ARDMainViewDelegate,
@@ -169,6 +171,16 @@ static NSString *barButtonImageString = @"ic_settings_black_24dp.png";
#pragma mark - Private
- (void)showSettings:(id)sender {
+ ARDSettingsViewController *settingsController =
+ [[ARDSettingsViewController alloc] initWithStyle:UITableViewStylePlain
+ mediaConstraintsModel:[[ARDMediaConstraintsModel alloc] init]];
+ UINavigationController *navigationController =
+ [[UINavigationController alloc] initWithRootViewController:settingsController];
+ [self presentViewControllerAsModal:navigationController];
+}
+
+- (void)presentViewControllerAsModal:(UIViewController *)viewController {
+ [self presentViewController:viewController animated:YES completion:nil];
}
- (void)configureAudioSession {
« no previous file with comments | « webrtc/examples/objc/AppRTCMobile/ARDAppClient.m ('k') | webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698