| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 _clientId = nil; | 297 _clientId = nil; |
| 298 _roomId = nil; | 298 _roomId = nil; |
| 299 _isInitiator = NO; | 299 _isInitiator = NO; |
| 300 _hasReceivedSdp = NO; | 300 _hasReceivedSdp = NO; |
| 301 _messageQueue = [NSMutableArray array]; | 301 _messageQueue = [NSMutableArray array]; |
| 302 _localVideoTrack = nil; | 302 _localVideoTrack = nil; |
| 303 #if defined(WEBRTC_IOS) | 303 #if defined(WEBRTC_IOS) |
| 304 [_factory stopAecDump]; | 304 [_factory stopAecDump]; |
| 305 [_peerConnection stopRtcEventLog]; | 305 [_peerConnection stopRtcEventLog]; |
| 306 #endif | 306 #endif |
| 307 [_peerConnection close]; |
| 307 _peerConnection = nil; | 308 _peerConnection = nil; |
| 308 self.state = kARDAppClientStateDisconnected; | 309 self.state = kARDAppClientStateDisconnected; |
| 309 #if defined(WEBRTC_IOS) | 310 #if defined(WEBRTC_IOS) |
| 310 if (kARDAppClientEnableTracing) { | 311 if (kARDAppClientEnableTracing) { |
| 311 RTCStopInternalCapture(); | 312 RTCStopInternalCapture(); |
| 312 } | 313 } |
| 313 #endif | 314 #endif |
| 314 } | 315 } |
| 315 | 316 |
| 316 #pragma mark - ARDSignalingChannelDelegate | 317 #pragma mark - ARDSignalingChannelDelegate |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 code:kARDAppClientErrorInvalidRoom | 840 code:kARDAppClientErrorInvalidRoom |
| 840 userInfo:@{ | 841 userInfo:@{ |
| 841 NSLocalizedDescriptionKey: @"Invalid room.", | 842 NSLocalizedDescriptionKey: @"Invalid room.", |
| 842 }]; | 843 }]; |
| 843 break; | 844 break; |
| 844 } | 845 } |
| 845 return error; | 846 return error; |
| 846 } | 847 } |
| 847 | 848 |
| 848 @end | 849 @end |
| OLD | NEW |