Variable: DEFAULT_RETRY_MAX_ATTEMPTS
const DEFAULT_RETRY_MAX_ATTEMPTS: 2 = 2;
Defined in: packages/player/src/player.ts:1493
Default RetryOptions.maxAttempts.
Two, because the failure this exists for — a stream that dropped, a CDN edge that blinked — is overwhelmingly fixed by the first re-attempt, and a second covers the case where the first landed on the same bad edge. Beyond that the evidence says the source is down, and since there is no delay between attempts (see RetryOptions) a larger budget would not wait for anything to recover — it would just burn through connects and make the queue appear stuck.