uffou / MixCloud-Play

MixCloud Desktop app with media controls and track title in menu bar
26 stars 8 forks source link

Media controls not working in MacOs Mojave 10.14.6 #3

Closed thim81 closed 4 years ago

thim81 commented 5 years ago

Hi,

It seems that "Media controls - play/pause, next" are not working in MacOs Mojave 10.14.6

Perhaps I'm missing a step in the install procedure or enabling permissions?

Regards, Tim

thim81 commented 4 years ago

Update: It seems to be related to "accessibility" settings.

https://electronjs.org/docs/api/global-shortcut#globalshortcutregisteraccelerator-callback

The following accelerators will not be registered successfully on macOS 10.14 Mojave unless the app has been authorized as a trusted accessibility client:

"Media Play/Pause"
"Media Next Track"
"Media Previous Track"
"Media Stop"

Which refers to https://developer.apple.com/library/archive/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXTestingApps.html

I tried this but currently without any luck.

I'm going to try by replacing the use "electron" version with the latest, to see if the support is solved.

thim81 commented 4 years ago

Update: I managed to get it working (even without the Electron update).

Steps that I did:

Now you should be done.

Close & Open the Mixcloud play app again. If everything worked, you can now control the "Play"/"Pause" button using your touchbar.

When testing it, be sure to put the focus on the "Mixcloud play" window, because sometimes other apps steal the media keys.