| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 - (void)appClient:(ARDAppClient *)client | 118 - (void)appClient:(ARDAppClient *)client |
| 119 didGetStats:(NSArray *)stats { | 119 didGetStats:(NSArray *)stats { |
| 120 _videoCallView.statsView.stats = stats; | 120 _videoCallView.statsView.stats = stats; |
| 121 [_videoCallView setNeedsLayout]; | 121 [_videoCallView setNeedsLayout]; |
| 122 } | 122 } |
| 123 | 123 |
| 124 - (void)appClient:(ARDAppClient *)client | 124 - (void)appClient:(ARDAppClient *)client |
| 125 didError:(NSError *)error { | 125 didError:(NSError *)error { |
| 126 NSString *message = | 126 NSString *message = |
| 127 [NSString stringWithFormat:@"%@", error.localizedDescription]; | 127 [NSString stringWithFormat:@"%@", error.localizedDescription]; |
| 128 [self hangup]; |
| 128 [self showAlertWithMessage:message]; | 129 [self showAlertWithMessage:message]; |
| 129 [self hangup]; | |
| 130 } | 130 } |
| 131 | 131 |
| 132 #pragma mark - ARDVideoCallViewDelegate | 132 #pragma mark - ARDVideoCallViewDelegate |
| 133 | 133 |
| 134 - (void)videoCallViewDidHangup:(ARDVideoCallView *)view { | 134 - (void)videoCallViewDidHangup:(ARDVideoCallView *)view { |
| 135 [self hangup]; | 135 [self hangup]; |
| 136 } | 136 } |
| 137 | 137 |
| 138 - (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view { | 138 - (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view { |
| 139 // TODO(tkchin): Rate limit this so you can't tap continously on it. | 139 // TODO(tkchin): Rate limit this so you can't tap continously on it. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 UIAlertAction *defaultAction = [UIAlertAction actionWithTitle:@"OK" | 212 UIAlertAction *defaultAction = [UIAlertAction actionWithTitle:@"OK" |
| 213 style:UIAlertActionSty
leDefault | 213 style:UIAlertActionSty
leDefault |
| 214 handler:^(UIAlertAction
*action){ | 214 handler:^(UIAlertAction
*action){ |
| 215 }]; | 215 }]; |
| 216 | 216 |
| 217 [alert addAction:defaultAction]; | 217 [alert addAction:defaultAction]; |
| 218 [self presentViewController:alert animated:YES completion:nil]; | 218 [self presentViewController:alert animated:YES completion:nil]; |
| 219 } | 219 } |
| 220 | 220 |
| 221 @end | 221 @end |
| OLD | NEW |