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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 return NO; | 284 return NO; |
285 } | 285 } |
286 CopyConstraintsIntoRtcConfiguration(_nativeConstraints.get(), | 286 CopyConstraintsIntoRtcConfiguration(_nativeConstraints.get(), |
287 config.get()); | 287 config.get()); |
288 return _peerConnection->SetConfiguration(*config); | 288 return _peerConnection->SetConfiguration(*config); |
289 } | 289 } |
290 | 290 |
291 - (RTCConfiguration *)configuration { | 291 - (RTCConfiguration *)configuration { |
292 webrtc::PeerConnectionInterface::RTCConfiguration config = | 292 webrtc::PeerConnectionInterface::RTCConfiguration config = |
293 _peerConnection->GetConfiguration(); | 293 _peerConnection->GetConfiguration(); |
294 return [[RTCConfiguration alloc] initWithNativeConfiguration:&config]; | 294 return [[RTCConfiguration alloc] initWithNativeConfiguration:config]; |
295 } | 295 } |
296 | 296 |
297 - (void)close { | 297 - (void)close { |
298 _peerConnection->Close(); | 298 _peerConnection->Close(); |
299 } | 299 } |
300 | 300 |
301 - (void)addIceCandidate:(RTCIceCandidate *)candidate { | 301 - (void)addIceCandidate:(RTCIceCandidate *)candidate { |
302 std::unique_ptr<const webrtc::IceCandidateInterface> iceCandidate( | 302 std::unique_ptr<const webrtc::IceCandidateInterface> iceCandidate( |
303 candidate.nativeCandidate); | 303 candidate.nativeCandidate); |
304 _peerConnection->AddIceCandidate(iceCandidate.get()); | 304 _peerConnection->AddIceCandidate(iceCandidate.get()); |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 case RTCStatsOutputLevelDebug: | 592 case RTCStatsOutputLevelDebug: |
593 return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug; | 593 return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug; |
594 } | 594 } |
595 } | 595 } |
596 | 596 |
597 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)nativePeerConnection { | 597 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)nativePeerConnection { |
598 return _peerConnection; | 598 return _peerConnection; |
599 } | 599 } |
600 | 600 |
601 @end | 601 @end |
OLD | NEW |