OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 struct RTCConfiguration { | 241 struct RTCConfiguration { |
242 static const int kUndefined = -1; | 242 static const int kUndefined = -1; |
243 // Default maximum number of packets in the audio jitter buffer. | 243 // Default maximum number of packets in the audio jitter buffer. |
244 static const int kAudioJitterBufferMaxPackets = 50; | 244 static const int kAudioJitterBufferMaxPackets = 50; |
245 // TODO(pthatcher): Rename this ice_transport_type, but update | 245 // TODO(pthatcher): Rename this ice_transport_type, but update |
246 // Chromium at the same time. | 246 // Chromium at the same time. |
247 IceTransportsType type; | 247 IceTransportsType type; |
248 // TODO(pthatcher): Rename this ice_servers, but update Chromium | 248 // TODO(pthatcher): Rename this ice_servers, but update Chromium |
249 // at the same time. | 249 // at the same time. |
250 IceServers servers; | 250 IceServers servers; |
251 // A localhost candidate is signaled whenever a candidate with the any | |
252 // address is allocated. | |
253 bool enable_localhost_ice_candidate; | |
254 BundlePolicy bundle_policy; | 251 BundlePolicy bundle_policy; |
255 RtcpMuxPolicy rtcp_mux_policy; | 252 RtcpMuxPolicy rtcp_mux_policy; |
256 TcpCandidatePolicy tcp_candidate_policy; | 253 TcpCandidatePolicy tcp_candidate_policy; |
257 int audio_jitter_buffer_max_packets; | 254 int audio_jitter_buffer_max_packets; |
258 bool audio_jitter_buffer_fast_accelerate; | 255 bool audio_jitter_buffer_fast_accelerate; |
259 int ice_connection_receiving_timeout; | 256 int ice_connection_receiving_timeout; |
260 ContinualGatheringPolicy continual_gathering_policy; | 257 ContinualGatheringPolicy continual_gathering_policy; |
261 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates; | 258 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates; |
262 | 259 |
263 RTCConfiguration() | 260 RTCConfiguration() |
264 : type(kAll), | 261 : type(kAll), |
265 enable_localhost_ice_candidate(false), | |
266 bundle_policy(kBundlePolicyBalanced), | 262 bundle_policy(kBundlePolicyBalanced), |
267 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), | 263 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), |
268 tcp_candidate_policy(kTcpCandidatePolicyEnabled), | 264 tcp_candidate_policy(kTcpCandidatePolicyEnabled), |
269 audio_jitter_buffer_max_packets(kAudioJitterBufferMaxPackets), | 265 audio_jitter_buffer_max_packets(kAudioJitterBufferMaxPackets), |
270 audio_jitter_buffer_fast_accelerate(false), | 266 audio_jitter_buffer_fast_accelerate(false), |
271 ice_connection_receiving_timeout(kUndefined), | 267 ice_connection_receiving_timeout(kUndefined), |
272 continual_gathering_policy(GATHER_ONCE) {} | 268 continual_gathering_policy(GATHER_ONCE) {} |
273 }; | 269 }; |
274 | 270 |
275 struct RTCOfferAnswerOptions { | 271 struct RTCOfferAnswerOptions { |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 CreatePeerConnectionFactory( | 654 CreatePeerConnectionFactory( |
659 rtc::Thread* worker_thread, | 655 rtc::Thread* worker_thread, |
660 rtc::Thread* signaling_thread, | 656 rtc::Thread* signaling_thread, |
661 AudioDeviceModule* default_adm, | 657 AudioDeviceModule* default_adm, |
662 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 658 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
663 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 659 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
664 | 660 |
665 } // namespace webrtc | 661 } // namespace webrtc |
666 | 662 |
667 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 663 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |