From 1e1faec982cbda29a513461aea38afe1d8f3e918 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 23 Apr 2022 18:50:18 -0700 Subject: [PATCH] Reduce the bandwidth ratio requirement to fire compensator --- webroot/js/components/latencyCompensator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/js/components/latencyCompensator.js b/webroot/js/components/latencyCompensator.js index dd939e3ba..411182a31 100644 --- a/webroot/js/components/latencyCompensator.js +++ b/webroot/js/components/latencyCompensator.js @@ -34,7 +34,7 @@ const MAX_SPEEDUP_RAMP = 0.02; // The max amount we will increase the playback r const TIMEOUT_DURATION = 30 * 1000; // The amount of time we stop handling latency after certain events. const CHECK_TIMER_INTERVAL = 3 * 1000; // How often we check if we should be compensating for latency. const BUFFERING_AMNESTY_DURATION = 3 * 1000 * 60; // How often until a buffering event expires. -const REQUIRED_BANDWIDTH_RATIO = 2.0; // The player:bitrate ratio required to enable compensating for latency. +const REQUIRED_BANDWIDTH_RATIO = 1.8; // The player:bitrate ratio required to enable compensating for latency. const HIGHEST_LATENCY_SEGMENT_LENGTH_MULTIPLIER = 2.6; // Segment length * this value is when we start compensating. const LOWEST_LATENCY_SEGMENT_LENGTH_MULTIPLIER = 1.8; // Segment length * this value is when we stop compensating. const MIN_LATENCY = 4 * 1000; // The absolute lowest we'll continue compensation to be running at.