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

Side by Side Diff: webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m

Issue 2778163005: Use new RTCCameraVideoCapturer in AppRTCMobile. (Closed)
Patch Set: Fix tests 2. Created 3 years, 8 months 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698