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
Bug: macOS media-buttons stop working #205
Comments
Thanks for the info, i will check |
I think I'm experiencing this same bug. When I press my media keys (Mac Das Keyboard), iTunes opens. |
The same issue here. When I press any media keys, iTunes opens. |
Same issue :) |
Same issue. App v1.9.0, macOS v10.15.6. |
Still a problem in 1.12 |
On the electron page, they explain what happened
Please read this: |
Hello there, Any suggestions? Cheers, |
+1, exactly what @haiGodzilla said |
Same here with latest version on MacOS 10.14.6 (18G6020) |
I'm investigating this problem, unfortunately for me it's difficult to validate because I don't have a mac, but I'm doing my best to avoid problems |
I've tried fiddling with it on my mac, can't make it work with the electron version used. It's going to be fixed in an upcoming v10.x.x according to electron/electron#24145. By the way, in your code you forgot to call |
I will implement, thank you |
Perfect, if you need me to quickly test your fixes when the newer version of electron is released, ping me. |
I made a small experiment here and tested
I can confirm that app shows the prompt and I'm able to allow access on System Preferences, but still not able to use fn key to play/pause songs. Itunes open instead. Not sure if There is no much topics about this problem, every one I found related to same resolution. But it seems this resolution does not work. |
@juliovedovatto It depends on the version of electron you used. The media keys don't work on macOS in electron 10. The fix electron/electron#24145 was merged into master at the end of August, but hasn't been backported to the stable branches yet (10 and 9). The first electron version in which it was landed is the https://github.com/electron/electron/releases/tag/v11.0.0-beta.1, but electron v11 is still in beta. |
@tex0l thanks for the feedback. I checked some topics, but I was not sure if they already fixed for the future versions. I just tested with Electron For now it is good for me, I'll use my custom build and keep an eye when they release oficially. |
This is still broken for me in 1.13.0 installed from homebrew. Is there an ETA for a build with a sufficiently new electron? From the above it sounds like the problem is well understood and the fix for it already in the pipeline. The media keys work fine for me when playing from a youtube music browser tab. As such this app is a non-starter to me. I hope someone will prioritise giving this some love. The app looks promising. |
Electron v11 was released on 16 Nov and is up to v11.0.3, so presumably the next release will have this fix (although the |
I just tried with the 1.14.0 beta and seems that this got fixed https://github.com/ytmdesktop/ytmdesktop/releases/tag/v1.14.0 |
Working for me also, but for anyone having troubles with the beta you must still have YTM added under Accessibility as per comment: #205 (comment) I didn't have this added initially and it was a no go. |
Can confirm that media keys work correctly in |
Media keys working as expected in I had to do the same thing that @coagmano did in order to make the media keys to work again, YTMD did not ask for permissions. |
Can confirm that permission under privacy/accessibility needed to be set in MacOS for the media keys to work. Interestingly the alternate hotkey <cmd + shift + space> worked without. |
the beta link for mac worked for me. @AlejandroRuiz thx! |
Media keys in Settings -> Security & Privacy -> Input Monitoring -> Add Youtube Music Desktop App. |
@rjzheng this worked perfectly. Thank you so much! :) |
Is 1.14.0 still concider nightly build? I'm installing through brew and they only have 1.13.0 release. I was thinking to submit latest version if that works but I don't think brew wants unstable versions. |
Can we deploy that ytdesktop to brew? I made a PR can and everything but brew isn't allowing beta versions. So can we deploy a stable version? |
The solution @rjzheng gave appears to not apply to macOS Sonoma. Hitting play/pause just opens Apple Music even with YTMD in Input Monitoring. |
I am having the exact same issue. |
Quick check, does this issue occur in v2 of the applicaiton. We do not have the |
I haven't experienced this yet on v2 |
app: 1.11.0
macOS: 10.15.5
Looks like upgrading electron causes media-buttons stop working
Downgrading to electron^7.2.4, electron-builder^21.2.0 brings it to life
The text was updated successfully, but these errors were encountered: