From 95bfb4a1412f8a438fc5e9d6433b87e49298b245 Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 27 Aug 2025 23:12:28 +0200 Subject: [PATCH] Update css/player-base.js --- css/player-base.js | 339 ++++++++++++++++++++++++++++++++------------- 1 file changed, 241 insertions(+), 98 deletions(-) diff --git a/css/player-base.js b/css/player-base.js index 637154b1..23f5cba4 100644 --- a/css/player-base.js +++ b/css/player-base.js @@ -2,13 +2,16 @@ var _yt_player = videojs; - -// Best-balanced DASH selection for Video.js + dash.js (via videojs-contrib-dash) -// - Probes 1080p → 720p → 480p with ABR OFF; each probe must play ~4.5s without ≥2s stall -// - If a probe succeeds, re-enable ABR with soft bounds (≥~430p floor if available, ≤1080p cap) -// - If all probes fail or on any error: enable full ABR - +// Self-healing DASH player (Video.js + videojs-contrib-dash + dash.js) +// + CORS hardening: +// - Force cookie-less requests: setXHRWithCredentialsForType(..., false) for all types +// - Drop CMCD headers (disable or force 'query' mode) to avoid preflights +// - Add request interceptor to strip credentials/custom headers on non-license calls +// - Set