Add configurable threshold for writability state update.
Add configurable parameters in RTCConfiguration with the default value given by the constants CONNECTION_WRITE_CONNECT_TIME and CONNECTION_WRITE_CONNECT_FAILURES in the ICE implementation. These two parameters define the time period for which a candidate pair must wait for ping response and the minimum number of connectivity checks that the pair must send without response before its state becomes unreliable from writable as defined in the current ICE implementation. Bug: webrtc:8988 Change-Id: I484599b7d776489a87741ffea8926df766095da9 Reviewed-on: https://webrtc-review.googlesource.com/60704 Commit-Queue: Qingsi Wang <qingsi@google.com> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22411}
This commit is contained in:
@ -187,6 +187,14 @@ void JavaToNativeRTCConfiguration(
|
||||
Java_RTCConfiguration_getIceCheckMinInterval(jni, j_rtc_config);
|
||||
rtc_config->ice_check_min_interval =
|
||||
JavaToNativeOptionalInt(jni, j_ice_check_min_interval);
|
||||
ScopedJavaLocalRef<jobject> j_ice_unwritable_timeout =
|
||||
Java_RTCConfiguration_getIceUnwritableTimeout(jni, j_rtc_config);
|
||||
rtc_config->ice_unwritable_timeout =
|
||||
JavaToNativeOptionalInt(jni, j_ice_unwritable_timeout);
|
||||
ScopedJavaLocalRef<jobject> j_ice_unwritable_min_checks =
|
||||
Java_RTCConfiguration_getIceUnwritableMinChecks(jni, j_rtc_config);
|
||||
rtc_config->ice_unwritable_min_checks =
|
||||
JavaToNativeOptionalInt(jni, j_ice_unwritable_min_checks);
|
||||
ScopedJavaLocalRef<jobject> j_stun_candidate_keepalive_interval =
|
||||
Java_RTCConfiguration_getStunCandidateKeepaliveInterval(jni,
|
||||
j_rtc_config);
|
||||
|
||||
Reference in New Issue
Block a user