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

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

Issue 2735303004: Add video codec setting to AppRTCMobile on iOS. (Closed)
Patch Set: Fix AppRTCMobile on Mac. Created 3 years, 9 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 - (void)appRTCMainView:(APPRTCMainView*)mainView 362 - (void)appRTCMainView:(APPRTCMainView*)mainView
363 didEnterRoomId:(NSString*)roomId 363 didEnterRoomId:(NSString*)roomId
364 loopback:(BOOL)isLoopback { 364 loopback:(BOOL)isLoopback {
365 365
366 if ([roomId isEqualToString:@""]) { 366 if ([roomId isEqualToString:@""]) {
367 [self.mainView displayLogMessage:@"Missing room id"]; 367 [self.mainView displayLogMessage:@"Missing room id"];
368 return; 368 return;
369 } 369 }
370 370
371 [_client disconnect]; 371 [_client disconnect];
372 ARDAppClient *client = [[ARDAppClient alloc] initWithDelegate:self]; 372 ARDAppClient *client = [[ARDAppClient alloc] initWithDelegate:self
373 preferVideoCodec:@"H264"];
373 [client connectToRoomWithId:roomId 374 [client connectToRoomWithId:roomId
374 isLoopback:isLoopback 375 isLoopback:isLoopback
375 isAudioOnly:NO 376 isAudioOnly:NO
376 shouldMakeAecDump:NO 377 shouldMakeAecDump:NO
377 shouldUseLevelControl:NO]; 378 shouldUseLevelControl:NO];
378 _client = client; 379 _client = client;
379 } 380 }
380 381
381 #pragma mark - Private 382 #pragma mark - Private
382 383
(...skipping 15 matching lines...) Expand all
398 [self.mainView.remoteVideoView renderFrame:nil]; 399 [self.mainView.remoteVideoView renderFrame:nil];
399 [self.mainView.localVideoView renderFrame:nil]; 400 [self.mainView.localVideoView renderFrame:nil];
400 } 401 }
401 402
402 - (void)disconnect { 403 - (void)disconnect {
403 [self resetUI]; 404 [self resetUI];
404 [_client disconnect]; 405 [_client disconnect];
405 } 406 }
406 407
407 @end 408 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698