Wire Yattee Server playback through /proxy/relay when proxiesVideos is on

The Sources -> Edit Source -> Proxy toggle now renders for Yattee
Server entries (supportsVideoProxying gains .yatteeServer). When the
toggle is on, playback fetches go through
videoWithProxyStreamsAndCaptionsAndStoryboards with mode .relay, so
the server returns signed /proxy/relay URLs (byte-relay, supports
HTTP Range, no on-disk caching). Downloads keep going through mode
.download so the server-side /proxy/fast/ flow continues to cache
files for repeat use.

InvidiousAPI.proxyStreamsIfNeeded early-returns for .yatteeServer
since proxying is now done at fetch time via ?proxy=true rather than
client-side host rewriting.
This commit is contained in:
Arkadiusz Fal
2026-05-04 08:01:51 +02:00
parent 73e3d8164b
commit 93240b4314
4 changed files with 46 additions and 16 deletions

View File

@@ -180,7 +180,7 @@ extension Instance {
/// Whether this instance supports proxying video streams through itself.
var supportsVideoProxying: Bool {
type == .invidious || type == .piped
type == .invidious || type == .piped || type == .yatteeServer
}
}