Skip to content

feat(player): add autoplay on open - #2246

Open
Pegoku wants to merge 2 commits into
jeffvli:developmentfrom
Pegoku:feature/autoplay-on-open
Open

feat(player): add autoplay on open#2246
Pegoku wants to merge 2 commits into
jeffvli:developmentfrom
Pegoku:feature/autoplay-on-open

Conversation

@Pegoku

@Pegoku Pegoku commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • add an opt-in Autoplay on open setting under General → Application
  • persist the playing state only when autoplay on open is enabled
  • automatically enable and lock Save play queue while autoplay on open is enabled
  • keep paused and stopped sessions idle after reopening

Closes #2241

@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
feishin Ready Ready Preview, Comment Jul 16, 2026 8:49pm

@Pegoku
Pegoku marked this pull request as ready for review July 16, 2026 20:48
Comment on lines +2625 to +2632
if (version < 32) {
state.general.autoPlayOnOpen = false;
}

return persistedState;
},
name: 'store_settings',
version: 31,
version: 32,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the migration here. Not needed as the persist middleware already handles merging new keys.

@jeffvli

jeffvli commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Unfortunately it doesn't seem to work for mpv, only the web player. Mpv may require an additional listener to trigger playback start instead of just the player state.

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.

[Feature]: Autoplay on open

2 participants