@ -34,7 +34,7 @@ const MAX_SPEEDUP_RAMP = 0.02; // The max amount we will increase the playback r
@@ -34,7 +34,7 @@ const MAX_SPEEDUP_RAMP = 0.02; // The max amount we will increase the playback r
constTIMEOUT_DURATION=30*1000;// The amount of time we stop handling latency after certain events.
constCHECK_TIMER_INTERVAL=3*1000;// How often we check if we should be compensating for latency.
constBUFFERING_AMNESTY_DURATION=3*1000*60;// How often until a buffering event expires.
constREQUIRED_BANDWIDTH_RATIO=2.0;// The player:bitrate ratio required to enable compensating for latency.
constREQUIRED_BANDWIDTH_RATIO=1.8;// The player:bitrate ratio required to enable compensating for latency.
constHIGHEST_LATENCY_SEGMENT_LENGTH_MULTIPLIER=2.6;// Segment length * this value is when we start compensating.
constLOWEST_LATENCY_SEGMENT_LENGTH_MULTIPLIER=1.8;// Segment length * this value is when we stop compensating.
constMIN_LATENCY=4*1000;// The absolute lowest we'll continue compensation to be running at.