Skip to content

Strengthen reload decision, retry failed backup types, document config#35

Merged
ryanbr merged 1 commit intomasterfrom
feat/reload-after-strip-and-backup-retry
Apr 5, 2026
Merged

Strengthen reload decision, retry failed backup types, document config#35
ryanbr merged 1 commit intomasterfrom
feat/reload-after-strip-and-backup-retry

Conversation

@ryanbr
Copy link
Copy Markdown
Owner

@ryanbr ryanbr commented Apr 5, 2026

Addresses reviewer concerns on the stable release:

  1. Reload after ad-end now also triggers when real segments were stripped (hadStrippedSegments), even within cooldown window. Fresh token/manifest cleans up player state more thoroughly than pause/play — reduces risk of ads leaking through when cooldown would have skipped the reload.

  2. FailedBackupPlayerTypes changed from Set to Map<type, timestamp>. Failures expire after 15s so transient network issues (GQL errors, connection blips) don't blacklist a player type for the entire ad break.

  3. README updates: document PinBackupPlayerType quality caveat (360p lock when autoplay gets pinned), ReloadCooldownSeconds, DisableReloadCap.

Addresses reviewer concerns on the stable release:

1. Reload after ad-end now also triggers when real segments were stripped
   (hadStrippedSegments), even within cooldown window. Fresh token/manifest
   cleans up player state more thoroughly than pause/play — reduces risk
   of ads leaking through when cooldown would have skipped the reload.

2. FailedBackupPlayerTypes changed from Set to Map<type, timestamp>.
   Failures expire after 15s so transient network issues (GQL errors,
   connection blips) don't blacklist a player type for the entire ad
   break.

3. README updates: document PinBackupPlayerType quality caveat (360p lock
   when autoplay gets pinned), ReloadCooldownSeconds, DisableReloadCap.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ryanbr ryanbr merged commit 3f2ddeb into master Apr 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant