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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 struct cricket::MediaConfig media_config; | 286 struct cricket::MediaConfig media_config; |
287 // Flags corresponding to values set by constraint flags. | 287 // Flags corresponding to values set by constraint flags. |
288 // rtc::Optional flags can be "missing", in which case the webrtc | 288 // rtc::Optional flags can be "missing", in which case the webrtc |
289 // default applies. | 289 // default applies. |
290 bool disable_ipv6 = false; | 290 bool disable_ipv6 = false; |
291 bool enable_rtp_data_channel = false; | 291 bool enable_rtp_data_channel = false; |
292 rtc::Optional<int> screencast_min_bitrate; | 292 rtc::Optional<int> screencast_min_bitrate; |
293 rtc::Optional<bool> combined_audio_video_bwe; | 293 rtc::Optional<bool> combined_audio_video_bwe; |
294 rtc::Optional<bool> enable_dtls_srtp; | 294 rtc::Optional<bool> enable_dtls_srtp; |
295 int ice_candidate_pool_size = 0; | 295 int ice_candidate_pool_size = 0; |
| 296 bool gather_low_cost_network_only = false; |
296 }; | 297 }; |
297 | 298 |
298 struct RTCOfferAnswerOptions { | 299 struct RTCOfferAnswerOptions { |
299 static const int kUndefined = -1; | 300 static const int kUndefined = -1; |
300 static const int kMaxOfferToReceiveMedia = 1; | 301 static const int kMaxOfferToReceiveMedia = 1; |
301 | 302 |
302 // The default value for constraint offerToReceiveX:true. | 303 // The default value for constraint offerToReceiveX:true. |
303 static const int kOfferToReceiveMediaTrue = 1; | 304 static const int kOfferToReceiveMediaTrue = 1; |
304 | 305 |
305 int offer_to_receive_video; | 306 int offer_to_receive_video; |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 702 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
702 cricket::WebRtcVideoDecoderFactory* decoder_factory) { | 703 cricket::WebRtcVideoDecoderFactory* decoder_factory) { |
703 return CreatePeerConnectionFactory( | 704 return CreatePeerConnectionFactory( |
704 worker_and_network_thread, worker_and_network_thread, signaling_thread, | 705 worker_and_network_thread, worker_and_network_thread, signaling_thread, |
705 default_adm, encoder_factory, decoder_factory); | 706 default_adm, encoder_factory, decoder_factory); |
706 } | 707 } |
707 | 708 |
708 } // namespace webrtc | 709 } // namespace webrtc |
709 | 710 |
710 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 711 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |