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; | 273 IceTransportsType type = kAll; |
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; | 277 BundlePolicy bundle_policy = kBundlePolicyBalanced; |
278 RtcpMuxPolicy rtcp_mux_policy; | 278 RtcpMuxPolicy rtcp_mux_policy = kRtcpMuxPolicyNegotiate; |
279 TcpCandidatePolicy tcp_candidate_policy; | 279 TcpCandidatePolicy tcp_candidate_policy = kTcpCandidatePolicyEnabled; |
280 int audio_jitter_buffer_max_packets; | 280 int audio_jitter_buffer_max_packets = kAudioJitterBufferMaxPackets; |
281 bool audio_jitter_buffer_fast_accelerate; | 281 bool audio_jitter_buffer_fast_accelerate = false; |
282 int ice_connection_receiving_timeout; // ms | 282 int ice_connection_receiving_timeout = kUndefined; // ms |
283 int ice_backup_candidate_pair_ping_interval; // ms | 283 int ice_backup_candidate_pair_ping_interval = kUndefined; // ms |
284 ContinualGatheringPolicy continual_gathering_policy; | 284 ContinualGatheringPolicy continual_gathering_policy = GATHER_ONCE; |
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; | 286 bool prioritize_most_likely_ice_candidate_pairs = false; |
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; | 291 bool disable_ipv6 = false; |
292 bool enable_rtp_data_channel; | 292 bool enable_rtp_data_channel = false; |
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 RTCConfiguration() | 296 int ice_candidate_pool_size = 0; |
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) {} | |
309 }; | 297 }; |
310 | 298 |
311 struct RTCOfferAnswerOptions { | 299 struct RTCOfferAnswerOptions { |
312 static const int kUndefined = -1; | 300 static const int kUndefined = -1; |
313 static const int kMaxOfferToReceiveMedia = 1; | 301 static const int kMaxOfferToReceiveMedia = 1; |
314 | 302 |
315 // The default value for constraint offerToReceiveX:true. | 303 // The default value for constraint offerToReceiveX:true. |
316 static const int kOfferToReceiveMediaTrue = 1; | 304 static const int kOfferToReceiveMediaTrue = 1; |
317 | 305 |
318 int offer_to_receive_video; | 306 int offer_to_receive_video; |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 CreatePeerConnectionFactory( | 683 CreatePeerConnectionFactory( |
696 rtc::Thread* worker_thread, | 684 rtc::Thread* worker_thread, |
697 rtc::Thread* signaling_thread, | 685 rtc::Thread* signaling_thread, |
698 AudioDeviceModule* default_adm, | 686 AudioDeviceModule* default_adm, |
699 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 687 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
700 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 688 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
701 | 689 |
702 } // namespace webrtc | 690 } // namespace webrtc |
703 | 691 |
704 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 692 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |