From 0a37e625bb2be41a591c5fbe59c4fbc50ce1b5db Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Wed, 24 Jun 2026 13:30:30 -0400 Subject: [PATCH] playback: fail over across hosted mirrors before dropping to P2P (#5) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The liveness probe already tries all of a video's sources, but actual playback only ever tried the single primary URL and then fell straight to WebTorrent. Now playback fails over across hosted mirrors first. - PlaybackSession builds an ordered, de-duped hostedSourceCandidates (primary URL first, then the video's imeta `sources`; accepts string or {url} entries). - attemptHostedPlayback takes a candidateUrl; the url-first execution loop tries each candidate and advances to the next mirror on probe-fail/stall/timeout, cleaning up watchdogs + resetting the