| OLD | NEW |
| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 _isInitiator = NO; | 310 _isInitiator = NO; |
| 311 _hasReceivedSdp = NO; | 311 _hasReceivedSdp = NO; |
| 312 _messageQueue = [NSMutableArray array]; | 312 _messageQueue = [NSMutableArray array]; |
| 313 #if defined(WEBRTC_IOS) | 313 #if defined(WEBRTC_IOS) |
| 314 [_factory stopAecDump]; | 314 [_factory stopAecDump]; |
| 315 [_peerConnection stopRtcEventLog]; | 315 [_peerConnection stopRtcEventLog]; |
| 316 #endif | 316 #endif |
| 317 _peerConnection = nil; | 317 _peerConnection = nil; |
| 318 self.state = kARDAppClientStateDisconnected; | 318 self.state = kARDAppClientStateDisconnected; |
| 319 #if defined(WEBRTC_IOS) | 319 #if defined(WEBRTC_IOS) |
| 320 RTCStopInternalCapture(); | 320 if (kARDAppClientEnableTracing) { |
| 321 RTCStopInternalCapture(); |
| 322 } |
| 321 #endif | 323 #endif |
| 322 } | 324 } |
| 323 | 325 |
| 324 #pragma mark - ARDSignalingChannelDelegate | 326 #pragma mark - ARDSignalingChannelDelegate |
| 325 | 327 |
| 326 - (void)channel:(id<ARDSignalingChannel>)channel | 328 - (void)channel:(id<ARDSignalingChannel>)channel |
| 327 didReceiveMessage:(ARDSignalingMessage *)message { | 329 didReceiveMessage:(ARDSignalingMessage *)message { |
| 328 switch (message.type) { | 330 switch (message.type) { |
| 329 case kARDSignalingMessageTypeOffer: | 331 case kARDSignalingMessageTypeOffer: |
| 330 case kARDSignalingMessageTypeAnswer: | 332 case kARDSignalingMessageTypeAnswer: |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 code:kARDAppClientErrorInvalidRoom | 839 code:kARDAppClientErrorInvalidRoom |
| 838 userInfo:@{ | 840 userInfo:@{ |
| 839 NSLocalizedDescriptionKey: @"Invalid room.", | 841 NSLocalizedDescriptionKey: @"Invalid room.", |
| 840 }]; | 842 }]; |
| 841 break; | 843 break; |
| 842 } | 844 } |
| 843 return error; | 845 return error; |
| 844 } | 846 } |
| 845 | 847 |
| 846 @end | 848 @end |
| OLD | NEW |