Skip to content

Fix video autoplay when the page first opens - #73

Merged
hudsonaikins merged 1 commit into
mainfrom
codex/profitctl-autoplay-visibility
Oct 8, 2026
Merged

hudsonaikins merged 1 commit into
mainfrom
codex/profitctl-autoplay-visibility

Conversation

@hudsonaikins

Copy link
Copy Markdown
Contributor

The embedded homepage video could remain paused on first load because its visibility state depended on an IntersectionObserver callback that did not always arrive. Compute viewport visibility immediately and refresh it on load, scroll, resize, and tab visibility changes so the silent loop starts when it appears.

The existing pause/resume control, reduced-motion preference, offscreen pause, and playback-error fallback remain supported.

Validation on 8b9fb5e: website build and typecheck passed; dead-code check passed; exact-candidate product gate passed with $0 provider cost. Rendered Chromium checks passed automatic startup without a gesture at 1440, 593, 390, and 320 pixels. WebKit passed using the existing small play fallback where its test-browser policy blocks autoplay. Keyboard controls, looping, reduced motion, no-JavaScript controls, retry, and all seven requested removals passed.

@hudsonaikins
hudsonaikins marked this pull request as ready for review October 8, 2026 02:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T02:34:38.973668Z 8b9fb5e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@hudsonaikins
hudsonaikins merged commit 3d1a734 into main Oct 8, 2026
6 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