| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 ARDICECandidateMessage *message = | 377 ARDICECandidateMessage *message = |
| 378 [[ARDICECandidateMessage alloc] initWithCandidate:candidate]; | 378 [[ARDICECandidateMessage alloc] initWithCandidate:candidate]; |
| 379 [self sendSignalingMessage:message]; | 379 [self sendSignalingMessage:message]; |
| 380 }); | 380 }); |
| 381 } | 381 } |
| 382 | 382 |
| 383 - (void)peerConnection:(RTCPeerConnection *)peerConnection | 383 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
| 384 didOpenDataChannel:(RTCDataChannel *)dataChannel { | 384 didOpenDataChannel:(RTCDataChannel *)dataChannel { |
| 385 } | 385 } |
| 386 | 386 |
| 387 - (void)peerConnectionOnFirstMediaPacketReceived: | |
| 388 (RTCPeerConnection *)peerConnection { | |
| 389 RTCLog(@"Received first media packet."); | |
| 390 } | |
| 391 | |
| 392 #pragma mark - RTCStatsDelegate | 387 #pragma mark - RTCStatsDelegate |
| 393 | 388 |
| 394 - (void)peerConnection:(RTCPeerConnection *)peerConnection | 389 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
| 395 didGetStats:(NSArray *)stats { | 390 didGetStats:(NSArray *)stats { |
| 396 dispatch_async(dispatch_get_main_queue(), ^{ | 391 dispatch_async(dispatch_get_main_queue(), ^{ |
| 397 [_delegate appClient:self didGetStats:stats]; | 392 [_delegate appClient:self didGetStats:stats]; |
| 398 }); | 393 }); |
| 399 } | 394 } |
| 400 | 395 |
| 401 #pragma mark - RTCSessionDescriptionDelegate | 396 #pragma mark - RTCSessionDescriptionDelegate |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 code:kARDAppClientErrorInvalidRoom | 724 code:kARDAppClientErrorInvalidRoom |
| 730 userInfo:@{ | 725 userInfo:@{ |
| 731 NSLocalizedDescriptionKey: @"Invalid room.", | 726 NSLocalizedDescriptionKey: @"Invalid room.", |
| 732 }]; | 727 }]; |
| 733 break; | 728 break; |
| 734 } | 729 } |
| 735 return error; | 730 return error; |
| 736 } | 731 } |
| 737 | 732 |
| 738 @end | 733 @end |
| OLD | NEW |