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

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

Issue 2482403002: Reland of Add bitrate section to settings view controller. (Closed)
Patch Set: Fix method 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
« no previous file with comments | « no previous file | webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 [RTCDispatcher dispatchAsyncOnType:RTCDispatcherTypeMain 165 [RTCDispatcher dispatchAsyncOnType:RTCDispatcherTypeMain
166 block:^{ 166 block:^{
167 RTCLog(@"audioSessionDidStopPlayOrRecord"); 167 RTCLog(@"audioSessionDidStopPlayOrRecord");
168 [self restartAudioPlayerIfNeeded]; 168 [self restartAudioPlayerIfNeeded];
169 }]; 169 }];
170 } 170 }
171 171
172 #pragma mark - Private 172 #pragma mark - Private
173 - (void)showSettings:(id)sender { 173 - (void)showSettings:(id)sender {
174 ARDSettingsViewController *settingsController = 174 ARDSettingsViewController *settingsController =
175 [[ARDSettingsViewController alloc] initWithStyle:UITableViewStylePlain 175 [[ARDSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped
176 mediaConstraintsModel:[[ARDMediaConstraintsMode l alloc] init]]; 176 mediaConstraintsModel:[[ARDMediaConstraintsMode l alloc] init]];
177 UINavigationController *navigationController = 177 UINavigationController *navigationController =
178 [[UINavigationController alloc] initWithRootViewController:settingsControl ler]; 178 [[UINavigationController alloc] initWithRootViewController:settingsControl ler];
179 [self presentViewControllerAsModal:navigationController]; 179 [self presentViewControllerAsModal:navigationController];
180 } 180 }
181 181
182 - (void)presentViewControllerAsModal:(UIViewController *)viewController { 182 - (void)presentViewControllerAsModal:(UIViewController *)viewController {
183 [self presentViewController:viewController animated:YES completion:nil]; 183 [self presentViewController:viewController animated:YES completion:nil];
184 } 184 }
185 185
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 - (void)showAlertWithMessage:(NSString*)message { 229 - (void)showAlertWithMessage:(NSString*)message {
230 UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil 230 UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil
231 message:message 231 message:message
232 delegate:nil 232 delegate:nil
233 cancelButtonTitle:@"OK" 233 cancelButtonTitle:@"OK"
234 otherButtonTitles:nil]; 234 otherButtonTitles:nil];
235 [alertView show]; 235 [alertView show];
236 } 236 }
237 237
238 @end 238 @end
OLDNEW
« no previous file with comments | « no previous file | webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698