OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 _client = nil; | 347 _client = nil; |
348 break; | 348 break; |
349 } | 349 } |
350 } | 350 } |
351 | 351 |
352 - (void)appClient:(ARDAppClient *)client | 352 - (void)appClient:(ARDAppClient *)client |
353 didChangeConnectionState:(RTCIceConnectionState)state { | 353 didChangeConnectionState:(RTCIceConnectionState)state { |
354 } | 354 } |
355 | 355 |
356 - (void)appClient:(ARDAppClient *)client | 356 - (void)appClient:(ARDAppClient *)client |
| 357 didCreateLocalCapturer:(RTCCameraVideoCapturer *)localCapturer { |
| 358 } |
| 359 |
| 360 - (void)appClient:(ARDAppClient *)client |
357 didReceiveLocalVideoTrack:(RTCVideoTrack *)localVideoTrack { | 361 didReceiveLocalVideoTrack:(RTCVideoTrack *)localVideoTrack { |
358 _localVideoTrack = localVideoTrack; | 362 _localVideoTrack = localVideoTrack; |
359 [_localVideoTrack addRenderer:self.mainView.localVideoView]; | 363 [_localVideoTrack addRenderer:self.mainView.localVideoView]; |
360 } | 364 } |
361 | 365 |
362 - (void)appClient:(ARDAppClient *)client | 366 - (void)appClient:(ARDAppClient *)client |
363 didReceiveRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack { | 367 didReceiveRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack { |
364 _remoteVideoTrack = remoteVideoTrack; | 368 _remoteVideoTrack = remoteVideoTrack; |
365 [_remoteVideoTrack addRenderer:self.mainView.remoteVideoView]; | 369 [_remoteVideoTrack addRenderer:self.mainView.remoteVideoView]; |
366 } | 370 } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 [self.mainView.remoteVideoView renderFrame:nil]; | 421 [self.mainView.remoteVideoView renderFrame:nil]; |
418 [self.mainView.localVideoView renderFrame:nil]; | 422 [self.mainView.localVideoView renderFrame:nil]; |
419 } | 423 } |
420 | 424 |
421 - (void)disconnect { | 425 - (void)disconnect { |
422 [self resetUI]; | 426 [self resetUI]; |
423 [_client disconnect]; | 427 [_client disconnect]; |
424 } | 428 } |
425 | 429 |
426 @end | 430 @end |
OLD | NEW |