Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add the ability to control spotify globally with media control keys and another app opened #206

Open
PolpOnline opened this issue Nov 10, 2020 · 7 comments
Assignees

Comments

@PolpOnline
Copy link

Is your feature request related to a problem? Please describe:

I love this app, but I want to use globally my media control keys on my keyboard (pause/play; stop; previous; next) to control only an application, not the latest application opened.
I currently use Toastify to handle media keys and redirect the command to Spotify.
This feature will be useful when you have one application that plays media (let's say the Twitch desktop app) and you want to control Spotify, which is in the background, without controlling Twitch playing live stream.

Describe the solution you'd like:

A customizable global hotkey handler that redirects the command to only an app.

@PolpOnline PolpOnline added the Enhancement New feature or request label Nov 10, 2020
@ShankarBUS
Copy link
Member

Woah woah woah, this is out of our scope! This is unrelated to our app, isn't it?

I can't assure you we'll do it in the future.

Let's wait for feedback from other active users.

There may be some future possibilities for this to be implemented. Not sure about the near future.

@piersdeseilligny
Copy link

Is it really that much out of scope? If I understand correctly what @blackcat-917 is asking for, it's more a sort of "lock" feature on a media session panel, so that the keyboard's media control shortcuts are only ever directed to that one? It seems like a good idea to me.

@ShankarBUS
Copy link
Member

Ummm, as the name of app suggests, we only aim to replace system flyouts, not add hotkey redirection to a particular application. This will be an unrelated feature to this app.

@piersdeseilligny
Copy link

Is it really hotkey redirection though? Wouldn't it "simply" be a matter of changing/locking which SMTC Session is active? This is already something which is possible in default windows flyout (changing active session, but not locking it).

Image from Gyazo

I have to admit I'm not familiar with how the GSMTC system works under the hood, so I might be completely missing the point here (and if so, I apologize), but i think this feature request is already somewhat possible with the default system flyout (maybe the ability to select active session should be another issue?). This feature request would just be a matter of adding the ability to systematically lock a specific session as the active one.

@ShankarBUS
Copy link
Member

Windows decides which session should be considered as the "CurrentSession" (all media keys will be redirected to it). We may be able to intercept thanks to @ADeltaX's NPSMLib. But that may cause system instability.

@ShankarBUS
Copy link
Member

We may use this

https://github.com/ADeltaX/NPSMLib/blob/3586026e0af398e05d1497dcb1bcf8f7509018b3/src/NPSMLib/NowPlayingSessionManager.cs#L121

But I am convinced that this will produce measurable issues

@Samuel12321
Copy link
Member

Samuel12321 commented Apr 10, 2021

Whether or not it is in the scope of the project, this is very low priority.
We probably wont have time to do this any time soon, however contributions from the community are welcome so if anyone wants to add this feature they can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants