// in the beginning.... god made mrrprpmnaynayaynaynayanyuwuuuwmauwnwanwaumawp :p var _yt_player = videojs; /** * Self-Healing DASH Player for Video.js * -------------------------------------------------------------- * Drop-in controller for MPEG-DASH playback * with Video.js + videojs-contrib-dash (dash.js underneath). * * WHAT THIS SCRIPT DOES * - Loads MPD from `window.mpdurl` and starts from 0s (fixes “starts at 5–7s”). * - Probes quality in order: 1080p → 720p → 480p with ABR OFF, then * re-enables ABR with soft bounds (floor ≈ 430p if available, cap 1080p). * - Monitors health; if playback stops advancing, it silently refreshes * the same MPD and resumes from the saved time (exponential backoff). * - On player/demux/network hiccups it flips back to full ABR for safety. * * CORS / NETWORK HARDENING * - Forces cookie-less segment/MPD requests (withCredentials=false per type). * - Disables CMCD headers (or uses query mode) to avoid preflights. * - Request interceptor strips non-essential custom headers on non-license * calls. The