From 68bdee8da5f74230471208974c4a7cb4190a52f8 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 5 Jul 2026 00:13:14 -0400 Subject: [PATCH] playback: fix false "No playable source found." on URL-only videos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A bitvid (kind-30078) video with a perfectly playable hosted URL (verified: archive.org 200 video/mp4 with byte ranges) failed with "No playable source found." — the video element's src was never even set. Root cause: the hosted-URL probe (fetch HEAD, mode:no-cors) runs BEFORE src is assigned, inside the playback-start window — but URL_PROBE_TIMEOUT_MS (4s) is LONGER than PLAYBACK_START_TIMEOUT (3s). A slow no-cors HEAD (archive.org, and any host that doesn't answer HEAD fast) consumed the whole start budget, the withTimeout wrapper aborted the attempt, and the URL was never loaded. A `