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

Media Play/Pause Key not working #415

Closed
Ecpii opened this issue Sep 22, 2021 · 11 comments · Fixed by #433
Closed

Media Play/Pause Key not working #415

Ecpii opened this issue Sep 22, 2021 · 11 comments · Fixed by #433

Comments

@Ecpii
Copy link

Ecpii commented Sep 22, 2021

After having the app open for a while, using the play/pause button on my keyboard will not pause tracks. Pressing this button will still show the on screen display, and the play/pause icon will sometimes toggle, but the music will continue playing.

video here (with sound)

Plugins:

  • adblocker
  • auto-confirm-when-paused
  • discord
  • in-app-menu
  • navigation

Settings:
Auto-update
Resume last song when app starts
Tray: enabled + app hidden

Version: 1.13.0, installed from Chocolatey

@JsephGriff
Copy link

JsephGriff commented Sep 22, 2021

Same issue here, but on Version 1.12.0, seems like it might have stemmed from a recent windows update, since it was working fine on the same version just weeks before.

@karanimaan
Copy link

I had the same issue on v 1.13.0, but it seems to work on v 1.12.2 for me.

@mrengy
Copy link

mrengy commented Sep 23, 2021

I am having the same issue on Mac OS 10.15.7 / YouTube Music 1.12.1 .

Also, it used to work fine but the issue cropped up recently, and I haven't updated YouTube Music, so not sure what caused it.

@mrengy
Copy link

mrengy commented Sep 23, 2021

Also happening on YouTube Music 1.12.2.

On both 1.12.2 and 1.12.1, the behavior is erratic. Here's what sometimes happens (this has happened repeatedly):

  1. With YT Music app not in focus but playing, press the keyboard play/pause button: nothing happens.
  2. Click on the YT Music app (on the top of the window) to bring it in focus: music pauses.
  3. Press keyboard play/pause button: then works as expected, for a short while.
  4. Click on another app to bring it in focus, press keyboard play/pause button: works as expected.

Other times at step 4, the keyboard play/pause button doesn't work. I can't seem to isolate when it works versus when it doesn't work. It doesn't seem to be tied to length of time spent with the other app in focus or whether I have pressed other keys or whether there is a text input in focus.

Dev tools > Console does not show anything useful, but maybe I'm just not looking in the right place there.

@Ecpii
Copy link
Author

Ecpii commented Sep 24, 2021

Yeah, I'm on Windows 10 version 21H1, and my testing has shown similar behavior to @mrengy 's described results - it doesn't work until it's in focus or recently focused.

Another thing I've noticed is that the button in the application itself will be in the wrong state after trying to pause the track - music will be playing and the button will be the "play" icon. Clicking it pauses the music for half a second, switches the button back to the pause icon, and continues playing it. After that, the button works as expected.

Additionally, although quite expected, trying to pause tracks through other controllers (like my earbuds) also doesn't work.

@Araxeus
Copy link
Collaborator

Araxeus commented Sep 25, 2021

You could meanwhile setup custom hotkeys using the shortcuts plugin

here is a short explanation how to do it - #235 (comment)

(this is not a fix for this problem, just a workaround - will work better if #243 is merged)

@mrengy
Copy link

mrengy commented Oct 12, 2021

I upgraded to 1.13.0 and am still experiencing the originally described issue. Also experiencing the mismatched play/pause buttons as @Ecpii described.

Thanks for the workaround. I'll give it a try.

@Araxeus
Copy link
Collaborator

Araxeus commented Oct 12, 2021

I thiink this might be happening because of auto-confirm-when-paused plugin.
Can anyone that has experienced this problem test with+/without the plugin on to check?

@mrengy
Copy link

mrengy commented Oct 12, 2021 via email

@Araxeus
Copy link
Collaborator

Araxeus commented Oct 15, 2021

I've reworked the auto-confirm-when-paused plugin (it is now always active) in a way that should fix this problem.
see PR #433

@mrengy
Copy link

mrengy commented Nov 10, 2021

Seems to be working nicely in v 1.14.0. This made my day.

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 a pull request may close this issue.

5 participants