OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 - (RTCIceConnectionState)iceConnectionState { | 241 - (RTCIceConnectionState)iceConnectionState { |
242 return [[self class] iceConnectionStateForNativeState: | 242 return [[self class] iceConnectionStateForNativeState: |
243 _peerConnection->ice_connection_state()]; | 243 _peerConnection->ice_connection_state()]; |
244 } | 244 } |
245 | 245 |
246 - (RTCIceGatheringState)iceGatheringState { | 246 - (RTCIceGatheringState)iceGatheringState { |
247 return [[self class] iceGatheringStateForNativeState: | 247 return [[self class] iceGatheringStateForNativeState: |
248 _peerConnection->ice_gathering_state()]; | 248 _peerConnection->ice_gathering_state()]; |
249 } | 249 } |
250 | 250 |
| 251 - (BOOL)setConfiguration:(RTCConfiguration *)configuration { |
| 252 return _peerConnection->SetConfiguration(configuration.nativeConfiguration); |
| 253 } |
| 254 |
251 - (void)close { | 255 - (void)close { |
252 _peerConnection->Close(); | 256 _peerConnection->Close(); |
253 } | 257 } |
254 | 258 |
255 - (void)addIceCandidate:(RTCIceCandidate *)candidate { | 259 - (void)addIceCandidate:(RTCIceCandidate *)candidate { |
256 rtc::scoped_ptr<const webrtc::IceCandidateInterface> iceCandidate( | 260 rtc::scoped_ptr<const webrtc::IceCandidateInterface> iceCandidate( |
257 candidate.nativeCandidate); | 261 candidate.nativeCandidate); |
258 _peerConnection->AddIceCandidate(iceCandidate.get()); | 262 _peerConnection->AddIceCandidate(iceCandidate.get()); |
259 } | 263 } |
260 | 264 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 case RTCStatsOutputLevelDebug: | 474 case RTCStatsOutputLevelDebug: |
471 return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug; | 475 return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug; |
472 } | 476 } |
473 } | 477 } |
474 | 478 |
475 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)nativePeerConnection { | 479 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)nativePeerConnection { |
476 return _peerConnection; | 480 return _peerConnection; |
477 } | 481 } |
478 | 482 |
479 @end | 483 @end |
OLD | NEW |