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

Side by Side Diff: webrtc/examples/objc/AppRTCMobile/ARDAppClient.m

Issue 2976983002: iOS AppRTCMobile: Close peerconnection when disconnecting (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698