| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |