| OLD | NEW | 
|    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 21 matching lines...) Expand all  Loading... | 
|   32   RTCVideoTrack *_localVideoTrack; |   32   RTCVideoTrack *_localVideoTrack; | 
|   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                    delegate:(id<ARDVideoCallViewControllerDelegate>)delegate { |   43                    delegate:(id<ARDVideoCallViewControllerDelegate>)delegate { | 
|   43   if (self = [super init]) { |   44   if (self = [super init]) { | 
|   44     _delegate = delegate; |   45     _delegate = delegate; | 
|   45     _client = [[ARDAppClient alloc] initWithDelegate:self]; |   46     _client = [[ARDAppClient alloc] initWithDelegate:self]; | 
|   46     [_client connectToRoomWithId:room |   47     [_client connectToRoomWithId:room | 
|   47                       isLoopback:isLoopback |   48                       isLoopback:isLoopback | 
|   48                      isAudioOnly:isAudioOnly]; |   49                      isAudioOnly:isAudioOnly | 
 |   50                shouldMakeAecDump:shouldMakeAecDump]; | 
|   49   } |   51   } | 
|   50   return self; |   52   return self; | 
|   51 } |   53 } | 
|   52  |   54  | 
|   53 - (void)loadView { |   55 - (void)loadView { | 
|   54   _videoCallView = [[ARDVideoCallView alloc] initWithFrame:CGRectZero]; |   56   _videoCallView = [[ARDVideoCallView alloc] initWithFrame:CGRectZero]; | 
|   55   _videoCallView.delegate = self; |   57   _videoCallView.delegate = self; | 
|   56   _videoCallView.statusLabel.text = |   58   _videoCallView.statusLabel.text = | 
|   57       [self statusTextForState:RTCIceConnectionStateNew]; |   59       [self statusTextForState:RTCIceConnectionStateNew]; | 
|   58   self.view = _videoCallView; |   60   self.view = _videoCallView; | 
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  209 - (void)showAlertWithMessage:(NSString*)message { |  211 - (void)showAlertWithMessage:(NSString*)message { | 
|  210   UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil |  212   UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil | 
|  211                                                       message:message |  213                                                       message:message | 
|  212                                                      delegate:nil |  214                                                      delegate:nil | 
|  213                                             cancelButtonTitle:@"OK" |  215                                             cancelButtonTitle:@"OK" | 
|  214                                             otherButtonTitles:nil]; |  216                                             otherButtonTitles:nil]; | 
|  215   [alertView show]; |  217   [alertView show]; | 
|  216 } |  218 } | 
|  217  |  219  | 
|  218 @end |  220 @end | 
| OLD | NEW |