Skip to content

Add post-ad resume hardening with pause intent and retry#3

Open
ryanbr wants to merge 3 commits intomasterfrom
feature/post-ad-resume-hardening
Open

Add post-ad resume hardening with pause intent and retry#3
ryanbr wants to merge 3 commits intomasterfrom
feature/post-ad-resume-hardening

Conversation

@ryanbr
Copy link
Copy Markdown
Owner

@ryanbr ryanbr commented Mar 22, 2026

  • Don't block player reloads when user has paused (only block pause/play toggle)
  • Respect user's manual pause — don't auto-resume after ad reload
  • Retry play() after 1.5s if initial resume didn't take effect
  • Reduces cases where player stays paused after ads until manual click

ryanbr and others added 2 commits March 22, 2026 20:00
- Don't block player reloads when user has paused (only block pause/play toggle)
- Respect user's manual pause — don't auto-resume after ad reload
- Retry play() after 1.5s if initial resume didn't take effect
- Reduces cases where player stays paused after ads until manual click

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ryanbr added a commit that referenced this pull request Mar 24, 2026
Merged into vaft-testing-ublock-origin.js and
video-swap-new-ublock-origin-testing.js:
- Segment recovery cache (PR #1)
- Post-ad resume hardening (PR #2)
- Failed backup player tracking (PR #3, vaft only)
- Ad-end grace period (PR #4)

PR #3 and #4 merged: FailedBackupPlayerTypes.clear() placed
inside the grace period check.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resume hardening coexists with muted restore and drift correction
in the reload setTimeout.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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