mirror of
https://github.com/yattee/yattee.git
synced 2026-05-14 11:25:02 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user