summaryrefslogtreecommitdiffstats
path: root/osdep/macos/remote_command_center.swift
Commit message (Collapse)AuthorAgeFilesLines
* mac: report playback state to the MediaPlayer Command Centerder richter2020-01-261-11/+42
| | | | | | some system logic for the global media key events depends on the right playback state. set the state properly to prevent more breakages in the future.
* mac: add support for PLAYONLY and PAUSEONLY key codes to MediaPlayerder richter2020-01-261-3/+3
| | | | Fixes #7365
* mac: replace old event tap for media key support with MediaPlayerder richter2019-12-151-0/+159
the old event tap has several problems, like no proper priority support or having to set accessibility permissions for mpv or the terminal. it is now replaced by the new MediaPlayer which has proper priority support and isn't as greedy as previously. this only includes Media Key support and not any of the other features included in the MediaPlayer framework, like proper Now Playing data (only set dummy data for now). this is only available on macOS 10.12.2 and higher. also removes some unnecessary redefines. Fixes #6389