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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 ARDSignalingMessage *answer = | 226 ARDSignalingMessage *answer = |
227 [[ARDSessionDescriptionMessage alloc] | 227 [[ARDSessionDescriptionMessage alloc] |
228 initWithDescription:answerDescription]; | 228 initWithDescription:answerDescription]; |
229 [self sendMessage:answer]; | 229 [self sendMessage:answer]; |
230 break; | 230 break; |
231 } | 231 } |
232 case kARDSignalingMessageTypeAnswer: | 232 case kARDSignalingMessageTypeAnswer: |
233 // Should not receive answer in loopback scenario. | 233 // Should not receive answer in loopback scenario. |
234 break; | 234 break; |
235 case kARDSignalingMessageTypeCandidate: | 235 case kARDSignalingMessageTypeCandidate: |
| 236 case kARDSignalingMessageTypeCandidateRemoval: |
236 // Send back to server. | 237 // Send back to server. |
237 [self sendMessage:message]; | 238 [self sendMessage:message]; |
238 break; | 239 break; |
239 case kARDSignalingMessageTypeBye: | 240 case kARDSignalingMessageTypeBye: |
240 // Nothing to do. | 241 // Nothing to do. |
241 return; | 242 return; |
242 } | 243 } |
243 } | 244 } |
244 | 245 |
245 - (void)channel:(id<ARDSignalingChannel>)channel | 246 - (void)channel:(id<ARDSignalingChannel>)channel |
246 didChangeState:(ARDSignalingChannelState)state { | 247 didChangeState:(ARDSignalingChannelState)state { |
247 } | 248 } |
248 | 249 |
249 @end | 250 @end |
250 | 251 |
OLD | NEW |