jeffvli / feishin

A modern self-hosted music player.
https://feishin.vercel.app
GNU General Public License v3.0
2.45k stars 103 forks source link

MacOS Media Player integration (media keys/playback status) #759

Open subpanic opened 6 days ago

subpanic commented 6 days ago

What do you want to be added?

Currently Feishin's playback status and controls aren't integrated with the Media Player API in MacOS. This means on devices like Macbooks the media keys cannot currently control Feishin and Feishin's playback state and status (artist/song name) don't show up in the MacOS Control Center. (Note: this is different than desktop MacOS setups with some external keyboards, playback controls can still work in some instances there when the keys aren't tied to the Media Player controls, but they are on Mac laptops)

I much prefer Feishin's app but have been forced to use alternatives on my macbook because of lack of media key control.

Additional context

No response

Is this a server-specific feature? (e.g. Jellyfin only)

jamie6king commented 2 days ago

I'm fairly certain you need to enable Feishin in Settings > Privacy & Security > Accessibility. I have a MacBook and it works perfectly (although it doesn't appear in the menubar for me).

subpanic commented 2 days ago

This is true but not the issue. This could be related to MacOS version/macbook version, I'm on 14.5 on an M1 Macbook Pro. Media keys will only trigger iTunes unless another application is running integrated with the Media Player API, it's a fairly widely documented issue. As a sidenote Feishin does have accessibility access, but the media keys will get captured by whatever application is responding to the Media Player API (which will be iTunes my default if no other running app is registered).

This was also previously an issue with the Supersonic application on certain MacOS/Mac hardware version until they added Media Player API integration.

subpanic commented 2 days ago

Follow-up, I did some further testing (removing the app, unsetting and re-setting accessibility, etc.) and was able to get media keys working. For anyone that has a similar issue where media keys are stolen by iTunes/Music app:

Leaving this open as Media Player API would still improve experience and remove/simplify this issue for people. But a maintainer can feel free to close/lmk to close if they would prefer a fresh feature ticket.