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

Side by Side Diff: webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m

Issue 2294913003: Update iOS AppRTCDemo to use level controller. (Closed)
Patch Set: Remove blank line. Created 4 years, 3 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 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 22 matching lines...) Expand all
33 AVAudioSessionPortOverride _portOverride; 33 AVAudioSessionPortOverride _portOverride;
34 } 34 }
35 35
36 @synthesize videoCallView = _videoCallView; 36 @synthesize videoCallView = _videoCallView;
37 @synthesize delegate = _delegate; 37 @synthesize delegate = _delegate;
38 38
39 - (instancetype)initForRoom:(NSString *)room 39 - (instancetype)initForRoom:(NSString *)room
40 isLoopback:(BOOL)isLoopback 40 isLoopback:(BOOL)isLoopback
41 isAudioOnly:(BOOL)isAudioOnly 41 isAudioOnly:(BOOL)isAudioOnly
42 shouldMakeAecDump:(BOOL)shouldMakeAecDump 42 shouldMakeAecDump:(BOOL)shouldMakeAecDump
43 shouldUseLevelControl:(BOOL)shouldUseLevelControl
43 delegate:(id<ARDVideoCallViewControllerDelegate>)delegate { 44 delegate:(id<ARDVideoCallViewControllerDelegate>)delegate {
44 if (self = [super init]) { 45 if (self = [super init]) {
45 _delegate = delegate; 46 _delegate = delegate;
46 _client = [[ARDAppClient alloc] initWithDelegate:self]; 47 _client = [[ARDAppClient alloc] initWithDelegate:self];
47 [_client connectToRoomWithId:room 48 [_client connectToRoomWithId:room
48 isLoopback:isLoopback 49 isLoopback:isLoopback
49 isAudioOnly:isAudioOnly 50 isAudioOnly:isAudioOnly
50 shouldMakeAecDump:shouldMakeAecDump]; 51 shouldMakeAecDump:shouldMakeAecDump
52 shouldUseLevelControl:shouldUseLevelControl];
51 } 53 }
52 return self; 54 return self;
53 } 55 }
54 56
55 - (void)loadView { 57 - (void)loadView {
56 _videoCallView = [[ARDVideoCallView alloc] initWithFrame:CGRectZero]; 58 _videoCallView = [[ARDVideoCallView alloc] initWithFrame:CGRectZero];
57 _videoCallView.delegate = self; 59 _videoCallView.delegate = self;
58 _videoCallView.statusLabel.text = 60 _videoCallView.statusLabel.text =
59 [self statusTextForState:RTCIceConnectionStateNew]; 61 [self statusTextForState:RTCIceConnectionStateNew];
60 self.view = _videoCallView; 62 self.view = _videoCallView;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 - (void)showAlertWithMessage:(NSString*)message { 213 - (void)showAlertWithMessage:(NSString*)message {
212 UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil 214 UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil
213 message:message 215 message:message
214 delegate:nil 216 delegate:nil
215 cancelButtonTitle:@"OK" 217 cancelButtonTitle:@"OK"
216 otherButtonTitles:nil]; 218 otherButtonTitles:nil];
217 [alertView show]; 219 [alertView show];
218 } 220 }
219 221
220 @end 222 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698