Skip to main content

Variable: DEFAULT_RESOLVER_TTL_MS

const DEFAULT_RESOLVER_TTL_MS: 600000 = 600_000;

Defined in: packages/player/src/source-resolver.ts:103

Default resolverTtlMs: how long one resolution stays usable.

Biased deliberately short. Too short costs a prefetch — the play-time pass re-resolves, produces a different URL than the prefetch pass used, and mpv discards the prefetched stream. Too long hands mpv a signed URL that has already expired, which is an outright load failure. One is a lost optimisation, the other is a broken track, so the default covers a typical track comfortably and stops well short of a typical signature lifetime.

Resolutions are refreshed whenever the queue moves, so this bounds staleness rather than reachability.