Skip to content

feat(player): add auto-play source regex setting - #3273

Closed
forbiders wants to merge 1 commit into
recloudstream:masterfrom
forbiders:master
Closed

forbiders wants to merge 1 commit into
recloudstream:masterfrom
forbiders:master

Conversation

@forbiders

Copy link
Copy Markdown

What does this PR do?

Adds an optional "Auto-play source regex" setting under Settings > Player. When set, the player auto-selects the first source whose name matches the pattern (case-insensitive, comma-separated). If no source matches (or the setting is empty/invalid), playback falls back to the first available source.

Changes

  • GeneratorPlayer.kt: startPlayer() reads player_auto_play_regex and prefers the first matching source name.
  • SettingsPlayerScreen.kt: adds a TextPreference under Source Priority to edit the regex.

Minimal diff (2 files). No new dependencies.

Implemented with AI assistance.

@forbiders forbiders closed this Oct 22, 2026
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