| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 kTcpCandidatePolicyDisabled | 216 kTcpCandidatePolicyDisabled |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 struct RTCConfiguration { | 219 struct RTCConfiguration { |
| 220 // TODO(pthatcher): Rename this ice_transport_type, but update | 220 // TODO(pthatcher): Rename this ice_transport_type, but update |
| 221 // Chromium at the same time. | 221 // Chromium at the same time. |
| 222 IceTransportsType type; | 222 IceTransportsType type; |
| 223 // TODO(pthatcher): Rename this ice_servers, but update Chromium | 223 // TODO(pthatcher): Rename this ice_servers, but update Chromium |
| 224 // at the same time. | 224 // at the same time. |
| 225 IceServers servers; | 225 IceServers servers; |
| 226 // A localhost candidate is signaled whenever a candidate with the any |
| 227 // address is allocated. |
| 228 bool enable_localhost_ice_candidate; |
| 226 BundlePolicy bundle_policy; | 229 BundlePolicy bundle_policy; |
| 227 RtcpMuxPolicy rtcp_mux_policy; | 230 RtcpMuxPolicy rtcp_mux_policy; |
| 228 TcpCandidatePolicy tcp_candidate_policy; | 231 TcpCandidatePolicy tcp_candidate_policy; |
| 229 int audio_jitter_buffer_max_packets; | 232 int audio_jitter_buffer_max_packets; |
| 230 bool audio_jitter_buffer_fast_accelerate; | 233 bool audio_jitter_buffer_fast_accelerate; |
| 231 | 234 |
| 232 RTCConfiguration() | 235 RTCConfiguration() |
| 233 : type(kAll), | 236 : type(kAll), |
| 237 enable_localhost_ice_candidate(false), |
| 234 bundle_policy(kBundlePolicyBalanced), | 238 bundle_policy(kBundlePolicyBalanced), |
| 235 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), | 239 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), |
| 236 tcp_candidate_policy(kTcpCandidatePolicyEnabled), | 240 tcp_candidate_policy(kTcpCandidatePolicyEnabled), |
| 237 audio_jitter_buffer_max_packets(50), | 241 audio_jitter_buffer_max_packets(50), |
| 238 audio_jitter_buffer_fast_accelerate(false) {} | 242 audio_jitter_buffer_fast_accelerate(false) {} |
| 239 }; | 243 }; |
| 240 | 244 |
| 241 struct RTCOfferAnswerOptions { | 245 struct RTCOfferAnswerOptions { |
| 242 static const int kUndefined = -1; | 246 static const int kUndefined = -1; |
| 243 static const int kMaxOfferToReceiveMedia = 1; | 247 static const int kMaxOfferToReceiveMedia = 1; |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 CreatePeerConnectionFactory( | 584 CreatePeerConnectionFactory( |
| 581 rtc::Thread* worker_thread, | 585 rtc::Thread* worker_thread, |
| 582 rtc::Thread* signaling_thread, | 586 rtc::Thread* signaling_thread, |
| 583 AudioDeviceModule* default_adm, | 587 AudioDeviceModule* default_adm, |
| 584 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 588 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
| 585 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 589 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
| 586 | 590 |
| 587 } // namespace webrtc | 591 } // namespace webrtc |
| 588 | 592 |
| 589 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 593 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
| OLD | NEW |