if i had to guess it's probably MPRemoteCommandCenter what we need, which is a 10.12.1+ feature. The only solution is probably using a newer API, if there is one. that's also the reason why we can't remove mpv from the global event list when it's not focused, since it still wants to get those keys if no other App actually requested those keys. Not every App, only those who actually want the requested keys. Shouldn't the top priority app be the one which was focused last? since Spotify doesn't get the priority after refocusing again, i would guess it doesn't do the same, which it should do. what i did is that mpv now re-adds itself to the top of the global event list when being focused, so it gets the media key events again. when refocusing mpv it was still at the second spot and Spotify got the media key events. after that when you opened Spotify, Spotify added itself at the top which left mpv as second. so what happened with mpv 0.26 is that when you started it first it added itself at the top. The API we use, and Spotify probably uses too, only allows to add an event tap at the top or the bottom of the global event list, but not in-between. i bet if you first start Spotify, then mpv 0.26 and switch the focus back to Spotify, it doesn't work either for Spotify and the 'priority' was still on mpv.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |