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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 } | 155 } |
156 [session unlockForConfiguration]; | 156 [session unlockForConfiguration]; |
157 }]; | 157 }]; |
158 } | 158 } |
159 | 159 |
160 - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view { | 160 - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view { |
161 _client.shouldGetStats = YES; | 161 _client.shouldGetStats = YES; |
162 _videoCallView.statsView.hidden = NO; | 162 _videoCallView.statsView.hidden = NO; |
163 } | 163 } |
164 | 164 |
| 165 - (void)videoCallViewDidDebug:(ARDVideoCallView *)view { |
| 166 NSLog(@"Debug button pressed."); |
| 167 |
| 168 RTCAudioSession *session = [RTCAudioSession sharedInstance]; |
| 169 RTCLog(@"Setting isAudioEnabled to YES."); |
| 170 session.isAudioEnabled = YES; |
| 171 |
| 172 } |
| 173 |
165 #pragma mark - RTCAudioSessionDelegate | 174 #pragma mark - RTCAudioSessionDelegate |
166 | 175 |
167 - (void)audioSession:(RTCAudioSession *)audioSession | 176 - (void)audioSession:(RTCAudioSession *)audioSession |
168 didDetectPlayoutGlitch:(int64_t)totalNumberOfGlitches { | 177 didDetectPlayoutGlitch:(int64_t)totalNumberOfGlitches { |
169 RTCLog(@"Audio session detected glitch, total: %lld", totalNumberOfGlitches); | 178 RTCLog(@"Audio session detected glitch, total: %lld", totalNumberOfGlitches); |
170 } | 179 } |
171 | 180 |
172 #pragma mark - Private | 181 #pragma mark - Private |
173 | 182 |
174 - (void)setRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack { | 183 - (void)setRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 UIAlertAction *defaultAction = [UIAlertAction actionWithTitle:@"OK" | 224 UIAlertAction *defaultAction = [UIAlertAction actionWithTitle:@"OK" |
216 style:UIAlertActionSty
leDefault | 225 style:UIAlertActionSty
leDefault |
217 handler:^(UIAlertAction
*action){ | 226 handler:^(UIAlertAction
*action){ |
218 }]; | 227 }]; |
219 | 228 |
220 [alert addAction:defaultAction]; | 229 [alert addAction:defaultAction]; |
221 [self presentViewController:alert animated:YES completion:nil]; | 230 [self presentViewController:alert animated:YES completion:nil]; |
222 } | 231 } |
223 | 232 |
224 @end | 233 @end |
OLD | NEW |