1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00
mpv/etc
Stefano Pigozzi 213ad5d6c4 osx: improve Media Keys support
This commit addresses some issues with the users had with the previous
implementation in commit c39efb9. Here's the changes:

  * Use Quartz Event Taps to remove Media Key events mpv handles from
    the global OS X queue. This prevents conflicts with iTunes. I did this on
    the main thread since it is mostly idling. It's the playloop thread that
    actually does all the work so there is no danger of blocking the event tap
    callback.
  * Introduce `--no-media-keys` switch so that users can disable all of mpv's
    media key handling at runtime (some prefer iTunes for example).
  * Use mpv's bindings so that users can customize what the media keys do via
    input.conf. Current bindings are:

      MK_PLAY cycle pause
      MK_PREV playlist_prev
      MK_NEXT playlist_next

An additional benefit of this implementation is that it is completly handled
by the `macosx_events` file instead of `macosx_application` making the
project organization more straightforward.
2013-06-04 23:02:23 +02:00
..
encoding-example-profiles.conf encoding-example-profiles: block non-4:0:0 for baseline h264 2013-04-04 09:40:00 +02:00
example.conf video: add --autofit and --autofit-larger options 2013-01-23 10:56:36 +01:00
input.conf osx: improve Media Keys support 2013-06-04 23:02:23 +02:00
mplayer.ico
mplayer.xpm
mpv-icon-source.svg TOOLS: add script for osx bundle generation 2012-10-16 07:15:12 +02:00