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

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

Issue 1289623005: Add stats overlay to iOS AppRTCDemo. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 4 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 _remoteVideoTrack = remoteVideoTrack; 263 _remoteVideoTrack = remoteVideoTrack;
264 [_remoteVideoTrack addRenderer:self.mainView.remoteVideoView]; 264 [_remoteVideoTrack addRenderer:self.mainView.remoteVideoView];
265 } 265 }
266 266
267 - (void)appClient:(ARDAppClient *)client 267 - (void)appClient:(ARDAppClient *)client
268 didError:(NSError *)error { 268 didError:(NSError *)error {
269 [self showAlertWithMessage:[NSString stringWithFormat:@"%@", error]]; 269 [self showAlertWithMessage:[NSString stringWithFormat:@"%@", error]];
270 [self disconnect]; 270 [self disconnect];
271 } 271 }
272 272
273 - (void)appClient:(ARDAppClient *)client
274 didGetStats:(NSArray *)stats {
275 }
276
273 #pragma mark - APPRTCMainViewDelegate 277 #pragma mark - APPRTCMainViewDelegate
274 278
275 - (void)appRTCMainView:(APPRTCMainView*)mainView 279 - (void)appRTCMainView:(APPRTCMainView*)mainView
276 didEnterRoomId:(NSString*)roomId { 280 didEnterRoomId:(NSString*)roomId {
277 [_client disconnect]; 281 [_client disconnect];
278 ARDAppClient *client = [[ARDAppClient alloc] initWithDelegate:self]; 282 ARDAppClient *client = [[ARDAppClient alloc] initWithDelegate:self];
279 [client connectToRoomWithId:roomId options:nil]; 283 [client connectToRoomWithId:roomId options:nil];
280 _client = client; 284 _client = client;
281 } 285 }
282 286
(...skipping 14 matching lines...) Expand all
297 _remoteVideoTrack = nil; 301 _remoteVideoTrack = nil;
298 [self.mainView.remoteVideoView renderFrame:nil]; 302 [self.mainView.remoteVideoView renderFrame:nil];
299 } 303 }
300 304
301 - (void)disconnect { 305 - (void)disconnect {
302 [self resetUI]; 306 [self resetUI];
303 [_client disconnect]; 307 [_client disconnect];
304 } 308 }
305 309
306 @end 310 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698