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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 new JsepIceCandidate(candidate.transport_name(), -1, candidate)); | 193 new JsepIceCandidate(candidate.transport_name(), -1, candidate)); |
194 RTCIceCandidate* ice_candidate = [[RTCIceCandidate alloc] | 194 RTCIceCandidate* ice_candidate = [[RTCIceCandidate alloc] |
195 initWithNativeCandidate:candidate_wrapper.get()]; | 195 initWithNativeCandidate:candidate_wrapper.get()]; |
196 [ice_candidates addObject:ice_candidate]; | 196 [ice_candidates addObject:ice_candidate]; |
197 } | 197 } |
198 RTCPeerConnection* peer_connection = peer_connection_; | 198 RTCPeerConnection* peer_connection = peer_connection_; |
199 [peer_connection.delegate peerConnection:peer_connection | 199 [peer_connection.delegate peerConnection:peer_connection |
200 didRemoveIceCandidates:ice_candidates]; | 200 didRemoveIceCandidates:ice_candidates]; |
201 } | 201 } |
202 | 202 |
| 203 void PeerConnectionDelegateAdapter::OnAddTrack( |
| 204 rtc::scoped_refptr<RtpReceiverInterface> receiver, |
| 205 std::vector<rtc::scoped_refptr<MediaStreamInterface>> streams) { |
| 206 } |
| 207 |
203 } // namespace webrtc | 208 } // namespace webrtc |
204 | 209 |
205 | 210 |
206 @implementation RTCPeerConnection { | 211 @implementation RTCPeerConnection { |
207 NSMutableArray<RTCMediaStream *> *_localStreams; | 212 NSMutableArray<RTCMediaStream *> *_localStreams; |
208 std::unique_ptr<webrtc::PeerConnectionDelegateAdapter> _observer; | 213 std::unique_ptr<webrtc::PeerConnectionDelegateAdapter> _observer; |
209 rtc::scoped_refptr<webrtc::PeerConnectionInterface> _peerConnection; | 214 rtc::scoped_refptr<webrtc::PeerConnectionInterface> _peerConnection; |
210 BOOL _hasStartedRtcEventLog; | 215 BOOL _hasStartedRtcEventLog; |
211 } | 216 } |
212 | 217 |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 case RTCStatsOutputLevelDebug: | 588 case RTCStatsOutputLevelDebug: |
584 return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug; | 589 return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug; |
585 } | 590 } |
586 } | 591 } |
587 | 592 |
588 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)nativePeerConnection { | 593 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)nativePeerConnection { |
589 return _peerConnection; | 594 return _peerConnection; |
590 } | 595 } |
591 | 596 |
592 @end | 597 @end |
OLD | NEW |