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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 BundlePolicy bundle_policy; | 251 BundlePolicy bundle_policy; |
252 RtcpMuxPolicy rtcp_mux_policy; | 252 RtcpMuxPolicy rtcp_mux_policy; |
253 TcpCandidatePolicy tcp_candidate_policy; | 253 TcpCandidatePolicy tcp_candidate_policy; |
254 int audio_jitter_buffer_max_packets; | 254 int audio_jitter_buffer_max_packets; |
255 bool audio_jitter_buffer_fast_accelerate; | 255 bool audio_jitter_buffer_fast_accelerate; |
256 int ice_connection_receiving_timeout; | 256 int ice_connection_receiving_timeout; |
257 int ice_backup_connection_ping_interval; | |
pthatcher1
2015/11/20 05:34:37
We need to specify the unit of measure. For examp
honghaiz3
2015/11/20 20:10:06
I added comments because the variable name is alre
| |
257 ContinualGatheringPolicy continual_gathering_policy; | 258 ContinualGatheringPolicy continual_gathering_policy; |
258 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates; | 259 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates; |
259 | 260 |
260 RTCConfiguration() | 261 RTCConfiguration() |
261 : type(kAll), | 262 : type(kAll), |
262 bundle_policy(kBundlePolicyBalanced), | 263 bundle_policy(kBundlePolicyBalanced), |
263 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), | 264 rtcp_mux_policy(kRtcpMuxPolicyNegotiate), |
264 tcp_candidate_policy(kTcpCandidatePolicyEnabled), | 265 tcp_candidate_policy(kTcpCandidatePolicyEnabled), |
265 audio_jitter_buffer_max_packets(kAudioJitterBufferMaxPackets), | 266 audio_jitter_buffer_max_packets(kAudioJitterBufferMaxPackets), |
266 audio_jitter_buffer_fast_accelerate(false), | 267 audio_jitter_buffer_fast_accelerate(false), |
267 ice_connection_receiving_timeout(kUndefined), | 268 ice_connection_receiving_timeout(kUndefined), |
269 ice_backup_connection_ping_interval(kUndefined), | |
268 continual_gathering_policy(GATHER_ONCE) {} | 270 continual_gathering_policy(GATHER_ONCE) {} |
269 }; | 271 }; |
270 | 272 |
271 struct RTCOfferAnswerOptions { | 273 struct RTCOfferAnswerOptions { |
272 static const int kUndefined = -1; | 274 static const int kUndefined = -1; |
273 static const int kMaxOfferToReceiveMedia = 1; | 275 static const int kMaxOfferToReceiveMedia = 1; |
274 | 276 |
275 // The default value for constraint offerToReceiveX:true. | 277 // The default value for constraint offerToReceiveX:true. |
276 static const int kOfferToReceiveMediaTrue = 1; | 278 static const int kOfferToReceiveMediaTrue = 1; |
277 | 279 |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
654 CreatePeerConnectionFactory( | 656 CreatePeerConnectionFactory( |
655 rtc::Thread* worker_thread, | 657 rtc::Thread* worker_thread, |
656 rtc::Thread* signaling_thread, | 658 rtc::Thread* signaling_thread, |
657 AudioDeviceModule* default_adm, | 659 AudioDeviceModule* default_adm, |
658 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 660 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
659 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 661 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
660 | 662 |
661 } // namespace webrtc | 663 } // namespace webrtc |
662 | 664 |
663 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 665 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |