OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 bool WebRtcSession::SetIceTransports( | 1161 bool WebRtcSession::SetIceTransports( |
1162 PeerConnectionInterface::IceTransportsType type) { | 1162 PeerConnectionInterface::IceTransportsType type) { |
1163 return port_allocator()->set_candidate_filter( | 1163 return port_allocator()->set_candidate_filter( |
1164 ConvertIceTransportTypeToCandidateFilter(type)); | 1164 ConvertIceTransportTypeToCandidateFilter(type)); |
1165 } | 1165 } |
1166 | 1166 |
1167 cricket::IceConfig WebRtcSession::ParseIceConfig( | 1167 cricket::IceConfig WebRtcSession::ParseIceConfig( |
1168 const PeerConnectionInterface::RTCConfiguration& config) const { | 1168 const PeerConnectionInterface::RTCConfiguration& config) const { |
1169 cricket::IceConfig ice_config; | 1169 cricket::IceConfig ice_config; |
1170 ice_config.receiving_timeout_ms = config.ice_connection_receiving_timeout; | 1170 ice_config.receiving_timeout_ms = config.ice_connection_receiving_timeout; |
| 1171 ice_config.prioritize_most_likely_candidate_pairs = |
| 1172 config.prioritize_most_likely_ice_candidate_pairs; |
1171 ice_config.backup_connection_ping_interval = | 1173 ice_config.backup_connection_ping_interval = |
1172 config.ice_backup_candidate_pair_ping_interval; | 1174 config.ice_backup_candidate_pair_ping_interval; |
1173 ice_config.gather_continually = (config.continual_gathering_policy == | 1175 ice_config.gather_continually = (config.continual_gathering_policy == |
1174 PeerConnectionInterface::GATHER_CONTINUALLY); | 1176 PeerConnectionInterface::GATHER_CONTINUALLY); |
1175 return ice_config; | 1177 return ice_config; |
1176 } | 1178 } |
1177 | 1179 |
1178 void WebRtcSession::SetIceConfig(const cricket::IceConfig& config) { | 1180 void WebRtcSession::SetIceConfig(const cricket::IceConfig& config) { |
1179 transport_controller_->SetIceConfig(config); | 1181 transport_controller_->SetIceConfig(config); |
1180 } | 1182 } |
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2119 } | 2121 } |
2120 } | 2122 } |
2121 | 2123 |
2122 void WebRtcSession::OnSentPacket_w(cricket::TransportChannel* channel, | 2124 void WebRtcSession::OnSentPacket_w(cricket::TransportChannel* channel, |
2123 const rtc::SentPacket& sent_packet) { | 2125 const rtc::SentPacket& sent_packet) { |
2124 RTC_DCHECK(worker_thread()->IsCurrent()); | 2126 RTC_DCHECK(worker_thread()->IsCurrent()); |
2125 media_controller_->call_w()->OnSentPacket(sent_packet); | 2127 media_controller_->call_w()->OnSentPacket(sent_packet); |
2126 } | 2128 } |
2127 | 2129 |
2128 } // namespace webrtc | 2130 } // namespace webrtc |
OLD | NEW |