diff --git a/static/app.js b/static/app.js index cbc25f9..5560943 100644 --- a/static/app.js +++ b/static/app.js @@ -831,15 +831,17 @@ async function play(ep_id, ep_no) { // hls.js 1.5.x reads the retry budget from the errorRetry / timeoutRetry // sub-objects (a top-level maxNumRetry is ignored — that was the old bug). // maxTimeToFirstByteMs first byte within 15s - // maxLoadTimeMs total load within 30s — MUST be finite, else a CDN - // that starts sending then stalls hangs us forever + // maxLoadTimeMs total load within 10s — finite cap, and LOWER than + // the first-byte cap, so a dribbling CDN segment is + // aborted at 10s and retried (timeoutRetry 6x) instead + // of the player staring at "Buffering…" for 30s // timeoutRetry retries for a load *timeout* (was default 1!) // errorRetry retries for HTTP errors like our proxy's 502 // Together: a slow/stalled CDN gets retried with backoff instead of one // shot -> fatal fragLoadTimeOut. hls = new Hls({ fragLoadPolicy: { default: { maxTimeToFirstByteMs: 15000, - maxLoadTimeMs: 30000, + maxLoadTimeMs: 10000, timeoutRetry: { maxNumRetry: 6, retryDelayMs: 1000, maxRetryDelayMs: 20000, backoff: "linear" }, errorRetry: { maxNumRetry: 8, retryDelayMs: 1000, maxRetryDelayMs: 20000, backoff: "linear" }, } } }); diff --git a/static/index.html b/static/index.html index c532876..e21b23f 100644 --- a/static/index.html +++ b/static/index.html @@ -6,7 +6,7 @@