Google-Play-Music-Desktop-Player-UNOFFICIAL- icon indicating copy to clipboard operation
Google-Play-Music-Desktop-Player-UNOFFICIAL- copied to clipboard

Fn + F5 / F6 / F7 (previous song, pause, next song) buttons have stopped working

Open krevs opened this issue 3 years ago • 48 comments

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:

krevs avatar Mar 03 '21 17:03 krevs

I'm seeing a similar issue on Windows and MacOS, where the media keys no longer work.

cruzzer avatar Mar 03 '21 18:03 cruzzer

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?

xc-racer avatar Mar 03 '21 18:03 xc-racer

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

stick1300 avatar Mar 03 '21 19:03 stick1300

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

ITguy13 avatar Mar 03 '21 19:03 ITguy13

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.

cfsmp3 avatar Mar 04 '21 01:03 cfsmp3

Pause, next and previous track keys have stopped working when using this player on my machine with Ubuntu 20.04.

weaseldotro avatar Mar 04 '21 09:03 weaseldotro

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.

bruno-brant avatar Mar 04 '21 13:03 bruno-brant

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.

image

bruno-brant avatar Mar 04 '21 13:03 bruno-brant

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!

image

While using just .play-pause-button' might be enough:

image

(this last snippet will start/stop playing in YT Music)

bruno-brant avatar Mar 04 '21 14:03 bruno-brant

Appears to be related to track progress, investigating further.

image

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.

jostrander avatar Mar 04 '21 14:03 jostrander

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 avatar Mar 04 '21 14:03 FinchPowers

@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.

xc-racer avatar Mar 04 '21 18:03 xc-racer

20210304_050149-CapturFiles

HudsonAfonso avatar Mar 04 '21 20:03 HudsonAfonso

Does this mean that the issue has been fixed upstream and now needs to be compiled into a new release of GPMDP?

cruzzer avatar Mar 08 '21 11:03 cruzzer

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!"...

agzam avatar Mar 08 '21 18:03 agzam

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?

cfsmp3 avatar Mar 08 '21 20:03 cfsmp3

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

agzam avatar Mar 08 '21 20:03 agzam

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 avatar Mar 09 '21 03:03 DanRxn

@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.

bruno-brant avatar Mar 09 '21 16:03 bruno-brant

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).

trobrock avatar Mar 16 '21 10:03 trobrock

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.

cruzzer avatar Mar 16 '21 14:03 cruzzer

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

SlashmanX avatar Mar 16 '21 16:03 SlashmanX

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.

bruno-brant avatar Mar 16 '21 18:03 bruno-brant

Ultimately I switched to Youtube Music Desktop which is maintained and I'd say pretty much the same thing (and it works).

cfsmp3 avatar Mar 16 '21 22:03 cfsmp3

@cfsmp3 Nope. This feature - Multimedia keys (Previous, Next, Pause, etc.) currently broken in ytmdesktop-youtube-music app as well.

agzam avatar Mar 16 '21 22:03 agzam

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.

YellowGTO avatar Mar 16 '21 22:03 YellowGTO

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.

cfsmp3 avatar Mar 16 '21 23:03 cfsmp3

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)

agzam avatar Mar 16 '21 23:03 agzam

i had to switch to youtube desktop music to get my shortcut keys working :(

tconley avatar Mar 17 '21 06:03 tconley

Here is a macOS build with the updated ytmusic.js https://www.dropbox.com/s/8wg2lrlxjnwd9r0/Google%20Play%20Music%20Desktop%20Player.zip

martinduparc avatar Mar 17 '21 13:03 martinduparc