Skip to content

feat: focus Plexamp when album art button pressed with no album#20

Open
bigethan wants to merge 1 commit into
DreadHeadHippy:mainfrom
bigethan:feature/album-art-focus-plexamp
Open

feat: focus Plexamp when album art button pressed with no album#20
bigethan wants to merge 1 commit into
DreadHeadHippy:mainfrom
bigethan:feature/album-art-focus-plexamp

Conversation

@bigethan
Copy link
Copy Markdown

Hello! I'm a big fan of AmpDeckPlus! But I don't have a lot of buttons available so mostly just use the album art button for play pause and to see what's playing. One thing that I've missed is that when playback ends the button just shows "no album". This change adds a little functionality where clicking the blank album art button will focuses the Plexamp app via the Stream Deck openUrl event with the plexamp:// URL scheme.

Happy to rework anything if you'd like!

When playback is stopped or idle (no album art displayed), clicking
the album art button now focuses the Plexamp app via the Stream Deck
openUrl event with the plexamp:// URL scheme.

- Allow ALBUM_ART action through the stopped/idle guard in handleButtonAction
- Add focusPlexampApp() helper that sends openUrl to Stream Deck
- Maintain existing togglePlayPause behavior when music is active
@DreadHeadHippy
Copy link
Copy Markdown
Owner

Thank you for this, I will review soon.

My Plex server is currently down because I'm transferring to a server, It's been a wild week 😅

@DreadHeadHippy DreadHeadHippy self-assigned this May 24, 2026
@DreadHeadHippy
Copy link
Copy Markdown
Owner

Thanks again for the PR and for the thoughtful improvement idea. I tested this branch locally (checked out, built, installed, and verified the stopped/idle button path is hit), but on my setup openUrl with plexamp:// does not actually bring Plexamp to the foreground.

Would you be open to sharing one of these so I can try to align with your environment?

A short video showing end-to-end behavior:

Plexamp not playing / no album art state
Press album-art key
Plexamp comes to front
Environment details:

OS/version
Stream Deck app version
Device model
Plexamp version
Whether Plexamp is already running vs fully closed
Any implementation notes:

Why openUrl worked in your setup
Any additional conditions/config that made it work consistently
If I can reproduce your exact working path, I'm happy to re-test and move this forward.

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.

2 participants