| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 17 matching lines...) Expand all Loading... |
| 28 // Maximum waiting time from the time of initiating probing to getting | 28 // Maximum waiting time from the time of initiating probing to getting |
| 29 // the measured results back. | 29 // the measured results back. |
| 30 constexpr int64_t kMaxWaitingTimeForProbingResultMs = 1000; | 30 constexpr int64_t kMaxWaitingTimeForProbingResultMs = 1000; |
| 31 | 31 |
| 32 // Value of |min_bitrate_to_probe_further_bps_| that indicates | 32 // Value of |min_bitrate_to_probe_further_bps_| that indicates |
| 33 // further probing is disabled. | 33 // further probing is disabled. |
| 34 constexpr int kExponentialProbingDisabled = 0; | 34 constexpr int kExponentialProbingDisabled = 0; |
| 35 | 35 |
| 36 // Default probing bitrate limit. Applied only when the application didn't | 36 // Default probing bitrate limit. Applied only when the application didn't |
| 37 // specify max bitrate. | 37 // specify max bitrate. |
| 38 constexpr int kDefaultMaxProbingBitrateBps = 100000000; | 38 constexpr int kDefaultMaxProbingBitrateBps = 5000000; |
| 39 | 39 |
| 40 // This is a limit on how often probing can be done when there is a BW | 40 // This is a limit on how often probing can be done when there is a BW |
| 41 // drop detected in ALR. | 41 // drop detected in ALR. |
| 42 constexpr int64_t kAlrProbingIntervalMinMs = 5000; | 42 constexpr int64_t kAlrProbingIntervalMinMs = 5000; |
| 43 | 43 |
| 44 // Interval between probes when ALR periodic probing is enabled. | 44 // Interval between probes when ALR periodic probing is enabled. |
| 45 constexpr int64_t kAlrPeriodicProbingIntervalMs = 5000; | 45 constexpr int64_t kAlrPeriodicProbingIntervalMs = 5000; |
| 46 | 46 |
| 47 // Minimum probe bitrate percentage to probe further for repeated probes. | 47 // Minimum probe bitrate percentage to probe further for repeated probes. |
| 48 constexpr int kRepeatedProbeMinPercentage = 125; | 48 constexpr int kRepeatedProbeMinPercentage = 125; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 } | 219 } |
| 220 min_bitrate_to_probe_further_bps_ = min_bitrate_to_probe_further_bps; | 220 min_bitrate_to_probe_further_bps_ = min_bitrate_to_probe_further_bps; |
| 221 time_last_probing_initiated_ms_ = now_ms; | 221 time_last_probing_initiated_ms_ = now_ms; |
| 222 if (min_bitrate_to_probe_further_bps == kExponentialProbingDisabled) | 222 if (min_bitrate_to_probe_further_bps == kExponentialProbingDisabled) |
| 223 state_ = State::kProbingComplete; | 223 state_ = State::kProbingComplete; |
| 224 else | 224 else |
| 225 state_ = State::kWaitingForProbingResult; | 225 state_ = State::kWaitingForProbingResult; |
| 226 } | 226 } |
| 227 | 227 |
| 228 } // namespace webrtc | 228 } // namespace webrtc |
| OLD | NEW |