Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: webrtc/modules/congestion_controller/probe_controller.cc

Issue 2997883002: Video/Screenshare loopback tool.
Patch Set: Rebase Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/congestion_controller/probe_controller.cc
diff --git a/webrtc/modules/congestion_controller/probe_controller.cc b/webrtc/modules/congestion_controller/probe_controller.cc
index 24ce7d42c376c6ff0c15d25af4cdb122f0ed0ef1..b462072c32b75a087c4b215d5efc93a4aa195b64 100644
--- a/webrtc/modules/congestion_controller/probe_controller.cc
+++ b/webrtc/modules/congestion_controller/probe_controller.cc
@@ -263,6 +263,14 @@ void ProbeController::Process() {
// Probe bandwidth periodically when in ALR state.
rtc::Optional<int64_t> alr_start_time =
pacer_->GetApplicationLimitedRegionStartTime();
+ if (!in_alr && alr_start_time) {
+ in_alr = true;
+ Print("Enter ALR: %ld", *alr_start_time);
+ } else if (in_alr && !alr_start_time) {
+ in_alr = false;
+ Print("Exit ALR");
+ }
+
if (alr_start_time && estimated_bitrate_bps_ > 0) {
int64_t next_probe_time_ms =
std::max(*alr_start_time, time_last_probing_initiated_ms_) +

Powered by Google App Engine
This is Rietveld 408576698