Skip to content

Prioritize Spotify session over browser media sessions#4513

Open
tiago-coderia wants to merge 2 commits into
ramensoftware:mainfrom
tiago-coderia:feature/prioritize-spotify
Open

Prioritize Spotify session over browser media sessions#4513
tiago-coderia wants to merge 2 commits into
ramensoftware:mainfrom
tiago-coderia:feature/prioritize-spotify

Conversation

@tiago-coderia

Copy link
Copy Markdown

Changelog

If this pull request updates an existing mod, describe the changes below:

Currently, the widget displays the first active media session. This causes browser tabs (YouTube, Twitch, etc.) to override Spotify when both are playing.

This change prioritizes Spotify whenever it is actively playing. If Spotify is not active, the code falls back to any other active media session and finally to the default GetCurrentSession() behavior.

  • Prioritize Spotify when multiple media sessions are active.
  • Fall back to other active media sessions when Spotify is not playing.
  • Preserve existing behavior when no active media sessions are available.

Mod authorship

If this pull request introduces a new mod, please complete the section below.

This mod was created by:

    • The submitter, without AI assistance
    • The submitter, with AI assistance
    • Claude
    • ChatGPT
    • Gemini
    • Another AI (please specify):
    • Other (please specify):

Please select the options that best apply. Your selection does not affect the acceptance criteria, but it helps reviewers understand the context of the code and provide relevant feedback.

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