| 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 |
| 387 #pragma mark - RTCStatsDelegate | 392 #pragma mark - RTCStatsDelegate |
| 388 | 393 |
| 389 - (void)peerConnection:(RTCPeerConnection *)peerConnection | 394 - (void)peerConnection:(RTCPeerConnection *)peerConnection |
| 390 didGetStats:(NSArray *)stats { | 395 didGetStats:(NSArray *)stats { |
| 391 dispatch_async(dispatch_get_main_queue(), ^{ | 396 dispatch_async(dispatch_get_main_queue(), ^{ |
| 392 [_delegate appClient:self didGetStats:stats]; | 397 [_delegate appClient:self didGetStats:stats]; |
| 393 }); | 398 }); |
| 394 } | 399 } |
| 395 | 400 |
| 396 #pragma mark - RTCSessionDescriptionDelegate | 401 #pragma mark - RTCSessionDescriptionDelegate |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 code:kARDAppClientErrorInvalidRoom | 729 code:kARDAppClientErrorInvalidRoom |
| 725 userInfo:@{ | 730 userInfo:@{ |
| 726 NSLocalizedDescriptionKey: @"Invalid room.", | 731 NSLocalizedDescriptionKey: @"Invalid room.", |
| 727 }]; | 732 }]; |
| 728 break; | 733 break; |
| 729 } | 734 } |
| 730 return error; | 735 return error; |
| 731 } | 736 } |
| 732 | 737 |
| 733 @end | 738 @end |
| OLD | NEW |