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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 263 } |
264 void set_prerenderer_smoothing(bool enable) { | 264 void set_prerenderer_smoothing(bool enable) { |
265 media_config.video.disable_prerenderer_smoothing = !enable; | 265 media_config.video.disable_prerenderer_smoothing = !enable; |
266 } | 266 } |
267 | 267 |
268 static const int kUndefined = -1; | 268 static const int kUndefined = -1; |
269 // Default maximum number of packets in the audio jitter buffer. | 269 // Default maximum number of packets in the audio jitter buffer. |
270 static const int kAudioJitterBufferMaxPackets = 50; | 270 static const int kAudioJitterBufferMaxPackets = 50; |
271 // TODO(pthatcher): Rename this ice_transport_type, but update | 271 // TODO(pthatcher): Rename this ice_transport_type, but update |
272 // Chromium at the same time. | 272 // Chromium at the same time. |
273 IceTransportsType type = kAll; | 273 IceTransportsType type; |
274 // TODO(pthatcher): Rename this ice_servers, but update Chromium | 274 // TODO(pthatcher): Rename this ice_servers, but update Chromium |
275 // at the same time. | 275 // at the same time. |
276 IceServers servers; | 276 IceServers servers; |
277 BundlePolicy bundle_policy = kBundlePolicyBalanced; | 277 BundlePolicy bundle_policy; |
278 RtcpMuxPolicy rtcp_mux_policy = kRtcpMuxPolicyNegotiate; | 278 RtcpMuxPolicy rtcp_mux_policy; |
279 TcpCandidatePolicy tcp_candidate_policy = kTcpCandidatePolicyEnabled; | 279 TcpCandidatePolicy tcp_candidate_policy; |
280 int audio_jitter_buffer_max_packets = kAudioJitterBufferMaxPackets; | 280 int audio_jitter_buffer_max_packets; |
281 bool audio_jitter_buffer_fast_accelerate = false; | 281 bool audio_jitter_buffer_fast_accelerate; |
282 int ice_connection_receiving_timeout = kUndefined; // ms | 282 int ice_connection_receiving_timeout; // ms |
283 int ice_backup_candidate_pair_ping_interval = kUndefined; // ms | 283 int ice_backup_candidate_pair_ping_interval; // ms |
284 ContinualGatheringPolicy continual_gathering_policy = GATHER_ONCE; | 284 ContinualGatheringPolicy continual_gathering_policy; |
285 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates; | 285 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates; |
286 bool prioritize_most_likely_ice_candidate_pairs = false; | 286 bool prioritize_most_likely_ice_candidate_pairs; |
287 struct cricket::MediaConfig media_config; | 287 struct cricket::MediaConfig media_config; |
288 // Flags corresponding to values set by constraint flags. | 288 // Flags corresponding to values set by constraint flags. |
289 // rtc::Optional flags can be "missing", in which case the webrtc | 289 // rtc::Optional flags can be "missing", in which case the webrtc |
290 // default applies. | 290 // default applies. |
291 bool disable_ipv6 = false; | 291 bool disable_ipv6; |
292 bool enable_rtp_data_channel = false; | 292 bool enable_rtp_data_channel; |
293 rtc::Optional<int> screencast_min_bitrate; | 293 rtc::Optional<int> screencast_min_bitrate; |
294 rtc::Optional<bool> combined_audio_video_bwe; | 294 rtc::Optional<bool> combined_audio_video_bwe; |
295 rtc::Optional<bool> enable_dtls_srtp; | 295 rtc::Optional<bool> enable_dtls_srtp; |
296 int ice_candidate_pool_size = 0; | 296 RTCConfiguration() |
| 297 : type(kAll), |
| 298 bundle_policy(kBundlePolicyBalanced), |
| 299 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), |
| 300 tcp_candidate_policy(kTcpCandidatePolicyEnabled), |
| 301 audio_jitter_buffer_max_packets(kAudioJitterBufferMaxPackets), |
| 302 audio_jitter_buffer_fast_accelerate(false), |
| 303 ice_connection_receiving_timeout(kUndefined), |
| 304 ice_backup_candidate_pair_ping_interval(kUndefined), |
| 305 continual_gathering_policy(GATHER_ONCE), |
| 306 prioritize_most_likely_ice_candidate_pairs(false), |
| 307 disable_ipv6(false), |
| 308 enable_rtp_data_channel(false) {} |
297 }; | 309 }; |
298 | 310 |
299 struct RTCOfferAnswerOptions { | 311 struct RTCOfferAnswerOptions { |
300 static const int kUndefined = -1; | 312 static const int kUndefined = -1; |
301 static const int kMaxOfferToReceiveMedia = 1; | 313 static const int kMaxOfferToReceiveMedia = 1; |
302 | 314 |
303 // The default value for constraint offerToReceiveX:true. | 315 // The default value for constraint offerToReceiveX:true. |
304 static const int kOfferToReceiveMediaTrue = 1; | 316 static const int kOfferToReceiveMediaTrue = 1; |
305 | 317 |
306 int offer_to_receive_video; | 318 int offer_to_receive_video; |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 CreatePeerConnectionFactory( | 695 CreatePeerConnectionFactory( |
684 rtc::Thread* worker_thread, | 696 rtc::Thread* worker_thread, |
685 rtc::Thread* signaling_thread, | 697 rtc::Thread* signaling_thread, |
686 AudioDeviceModule* default_adm, | 698 AudioDeviceModule* default_adm, |
687 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 699 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
688 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 700 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
689 | 701 |
690 } // namespace webrtc | 702 } // namespace webrtc |
691 | 703 |
692 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 704 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |