Automatically continue playback when its owning tab closes #3

Merged
conrad merged 1 commit from codex/shared-browser-state into main 2026-09-05 20:53:46 -04:00
Owner

Closing the playback owner now automatically restores the item, position, and speed in the next open tab. Playing media resumes when the browser permits autoplay; paused media stays paused. If autoplay is blocked, the restored player shows Play and a clear status message. Explicit commands during handoff take precedence, and closing observers does not interrupt playback.

Validation: 10 shared-tab tests, TypeScript, production build, and an isolated real-Chrome test demonstrating automatic continuation without another click. This follows PR #2 and does not change the database schema or VFS.

Closing the playback owner now automatically restores the item, position, and speed in the next open tab. Playing media resumes when the browser permits autoplay; paused media stays paused. If autoplay is blocked, the restored player shows Play and a clear status message. Explicit commands during handoff take precedence, and closing observers does not interrupt playback. Validation: 10 shared-tab tests, TypeScript, production build, and an isolated real-Chrome test demonstrating automatic continuation without another click. This follows PR #2 and does not change the database schema or VFS.
Automatically hand playback to the next open tab
Some checks failed
deploy-fly / validate (push) Failing after 32m30s
deploy-fly / deploy (push) Has been cancelled
4c88f9f0e5
conrad merged commit 4c88f9f0e5 into main 2026-09-05 20:53:46 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
conrad/media!3
No description provided.