Google-Play-Music-Desktop-Player-UNOFFICIAL-
Google-Play-Music-Desktop-Player-UNOFFICIAL- copied to clipboard
Fn + F5 / F6 / F7 (previous song, pause, next song) buttons have stopped working
Checklist:
-
[x] I have checked that there are no issues with similar or the same content
YOU SHOULD CHECK CLOSED ISSUES AS WELL
-
[x] I have checked the FAQ (https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/wiki/FAQ) and the answer I am looking for is not there
-
[x] I have double checked and can reproduce the issue
OS: Windows
GPMDP Version: 4.7.1
Issue Descriptions: Fn + F5 / F6 / F7 (previous song, pause, next song) buttons have stopped working
Steps to Reproduce:
I'm seeing a similar issue on Windows and MacOS, where the media keys no longer work.
Similar issue as of this morning. Play/Pause, Previous Track & Next Track keys on my Logitech K330 keyboard have stopped working.
OS - Windows 10 Home version 1909 GPMDP Version - 4.7.1
Edit: Just did a bit more digging - media keys work fine in VLC and iTunes. Also work fine for music.youtube.com when opened in Microsoft Edge. But, they're not working for youtube.com or music.youtube.com when opened in Chrome. So it looks like it's a Chrome issue?
Yup, noticed this late yesterday. I've got the previous/next/pause commands mapped to custom keys (SHIFT+CTRL+I/O/P).
OS - Windows 10 Pro 19041.572 GPMDP version - 4.7.1
I can confirm it's happening as well. None of my hotkeys that have worked for years have stopped working. I used a hotkey detective to confirm that GPMDP is still the only app that they are mapped to. I also wiped out my AppData for GPMDP to reset it and no luck.
OS - Windows 10 Pro 20H2 (19042.804) GPMDP - 4.7.1
Actually it's not the keys. I've spent a few hours tracking this down (linux) trying to figure out if there was any program hijacking the keys, but no.
If you use the same options on the menu they don't work either. Strange, as "Show" for example works as expected, as well as the rest of the menu (quit, help, etc).
I suspect the problem is not with GPMDP but some change from Google breaking things.
Pause, next and previous track keys have stopped working when using this player on my machine with Ubuntu 20.04.
Same here - I configure personal hotkeys like CTRL+ALT+C and CTRL+ALT+V and they simply stopped working, out of the blue. Also my Logitech headset media keys.
I restarted Windows a couple of times to see if GPMDP was able to register the keys and tried to check if any other program was hijacking those keys but I concluded that this is something with GPMDP itself. I now certain of it because of this thread - people on different systems having similar trouble.
Is there a log that I could look at? Although, I'd say that GPMDP is oblivious to the issue, since usually it complains right after I set the key, and this isn't the case.
Reflecting on the issue (without looking at the code) I expect that something changed on YT side of things because:
- It's started without any changes to GPMDP itself.
- It's affecting people on all kind of OSes.
- GPMDP isn't complaining when registering keys, it's just not doing what it's supposed to do once we actuate those keys.
UPDATE: Right clicking the taskbar icon and selecting Play/Pause doesn't work either, which confirms my assumptions.
I think I tracked down the issue. The culprit is actually an upstream project, (ytmusic.js)[gmusic-utils/ytmusic.js]. GPMDP relies on it to control playback on YT music. I believe its selector might be failing o click the button. If I'm not mistaken, the selectors are here. For play/pause for instance, they are:
playPause: '.left-controls .play-pause-button',
~~And while I can't attest to what was before, this selector returns null:~~ Nope, it doesn't, I inverted the classes in the query below!
While using just .play-pause-button'
might be enough:
(this last snippet will start/stop playing in YT Music)
Appears to be related to track progress, investigating further.
The track progress element was recently changed to tp-yt-paper-slider
. Unfortunately the underlying library is throwing an assertion error because it can't map the progress selector correctly, which ends the further results of the lib.
In the meantime, it seems like the command keys are working in the browser version at https://music.youtube.com/. (I've tried with Firefox.)
@FinchPowers My observation is that command keys are working in the browser version of music.youtube.com when opened in Microsoft Edge, but NOT in Chrome.

Does this mean that the issue has been fixed upstream and now needs to be compiled into a new release of GPMDP?
Any news on this issue?
This is so infuriatingly frustrating. I've got a paid account for Google Music, for which Google has never built a native player, nor ever tried to support this one; or at least ever attempted to make sure not to break things. So many times I had to deal with their temper-tantrums. And so many times I would get frustrated, yet keep using Google Music, which is now YouTube Music. And since it became YT Music, I can't no longer even watch YT videos and listen to the music at the same time. On the same laptop. Seriously? WTF, Google?
Honestly, I feel guilty for using anything from Google these days, and even more so for paying for its services. Google not even trying to hide it anymore, they are not on the trajectory to become evil - they already are evil.
Sometimes I feel so depressed and helpless for not being able to say: "Go to Hell, Google! Go to Hell with all your shit!". Using anything of Google these days feels like smoking cigarettes in front of your kids - gross, stupid and inconsiderate. I wouldn't even get surprised if at some point people organize "support groups", similar to AA, where they'd be helping each other to stay off Google products. "Wohoo! Today I got another star for not using Gmail for six months straight. I'm doing it, folks! I am free!"...
Any news on this issue? This is so infuriatingly frustrating. I've got a paid account for Google Music, for which Google has
You realize that is project has nothing to do with Google, right :-) It seems to be an abandoned project, so it's up to the community to fork and maintain it. I tried that fix and it didn't work for me, but maybe I was having a bad idea and didn't do it right, or I had some other problem as well.
What specific OS are you using?
You realize that is project has nothing to do with Google, right :-)
Oh, of course I am. I apologize for that it sounded like I'm complaining about the project. No. I completely understand that this issue is upstream and like it happened many times before - it is due to Google's BS.
I am not frustrated with this App. I love it. I should've probably emphasized that. I just assumed everyone who uses GPMDP knows that this issue is not internal.
What specific OS are you using?
OS X Big Sur
For whatever it's worth, the menu command, Edit > Previous Page
, is not working for me, to go back to the previous screen. Neither is the keyboard shortcut for the same command:
Cmd
+ [
Feels like this has broken basically at the same time I noticed the media keys (play, pause, skip, etc.) not working. Just mentioning in case that helps anyone have a better sense of where this may be breaking. Even if not helpful, hopefully this will get fixed along with the media keys...
🤞😬
@DanRxn same here. I was about to post about it - I use mouse keys for back/forward and they stopped working. Alt+→ or Alt+← also don't work. Probably it's all related.
Does anyone know what needs to be done in the code to get this working again? It crazy annoying and I'm happy to dedicate some time today to fixing it if I could be pointed in the right direction (if there is even anything we can do within this project).
Does anyone know what needs to be done in the code to get this working again? It crazy annoying and I'm happy to dedicate some time today to fixing it if I could be pointed in the right direction (if there is even anything we can do within this project).
There appears to have been a google side change which the player hooked into. In @bruno-brant comment, he mentions an upstream project which is used by GPMDP to control ytmusic.
In a linked ytmusic.js issue, they mentioned that they've fixed an issue on their side and comment that GPMDP will need to pull their change. You might just need to build GPMDP with their changes.
Does anyone know what needs to be done in the code to get this working again? It crazy annoying and I'm happy to dedicate some time today to fixing it if I could be pointed in the right direction (if there is even anything we can do within this project).
#3922 just needs to get merged
Everyone coming here for this fix: you can get a pre-release from AppVeyor (either go here https://ci.appveyor.com/project/MarshallOfSound/google-play-music-desktop-player-unofficial/builds/38077585/artifacts or follow the link in the PR #3922).
This is a work around while said PR isn't merged.
Ultimately I switched to Youtube Music Desktop which is maintained and I'd say pretty much the same thing (and it works).
@cfsmp3 Nope. This feature - Multimedia keys (Previous, Next, Pause, etc.) currently broken in ytmdesktop-youtube-music app as well.
Ultimately I switched to Youtube Music Desktop which is maintained and I'd say pretty much the same thing (and it works).
Same. For anyone else, if you navigate to music.youtube.com with chrome, near the chromecast button it will ask you to install the desktop app.
On Tue, Mar 16, 2021 at 3:54 PM Ag Ibragimov @.***> wrote:
@cfsmp3 https://github.com/cfsmp3 Nope. This feature - Multimedia keys (Previous, Next, Pause, etc.) currently broken in ytmdesktop-youtube-music app as well.
I'm using them just fine.
if you navigate to music.youtube.com with chrome, near the chromecast button it will ask you to install the desktop app.
That thing has never worked for me. It just hangs. It hangs both itself and the browser. Tried with Chrome and Brave - same results. Probably has something to do with OS X Big Sur settings. Fuck you Google! and Fuck you Apple! (you ain't no better)
i had to switch to youtube desktop music to get my shortcut keys working :(
Here is a macOS build with the updated ytmusic.js https://www.dropbox.com/s/8wg2lrlxjnwd9r0/Google%20Play%20Music%20Desktop%20Player.zip