diff options
author | der richter <der.richter@gmx.de> | 2020-01-22 11:07:28 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2020-01-26 12:09:55 +0100 |
commit | 3d16ab1a311d16cd5a07feca916494869a80d264 (patch) | |
tree | 1c858a008260565a5211c5df06bd7b87e8eaa0c3 /osdep/macos | |
parent | 77d42d5532c2f411da1b1e054b1a867498c7187d (diff) | |
download | mpv-3d16ab1a311d16cd5a07feca916494869a80d264.tar.bz2 mpv-3d16ab1a311d16cd5a07feca916494869a80d264.tar.xz |
mac: add support for PLAYONLY and PAUSEONLY key codes to MediaPlayer
Fixes #7365
Diffstat (limited to 'osdep/macos')
-rw-r--r-- | osdep/macos/remote_command_center.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/osdep/macos/remote_command_center.swift b/osdep/macos/remote_command_center.swift index 585a2e5698..7d6e51081c 100644 --- a/osdep/macos/remote_command_center.swift +++ b/osdep/macos/remote_command_center.swift @@ -27,11 +27,11 @@ class RemoteCommandCenter: NSObject { var config: [MPRemoteCommand:[String:Any]] = [ MPRemoteCommandCenter.shared().pauseCommand: [ - "mpKey": MP_KEY_PAUSE, + "mpKey": MP_KEY_PAUSEONLY, "keyType": KeyType.normal ], MPRemoteCommandCenter.shared().playCommand: [ - "mpKey": MP_KEY_PLAY, + "mpKey": MP_KEY_PLAYONLY, "keyType": KeyType.normal ], MPRemoteCommandCenter.shared().stopCommand: [ @@ -47,7 +47,7 @@ class RemoteCommandCenter: NSObject { "keyType": KeyType.normal ], MPRemoteCommandCenter.shared().togglePlayPauseCommand: [ - "mpKey": MP_KEY_PLAYPAUSE, + "mpKey": MP_KEY_PLAY, "keyType": KeyType.normal ], MPRemoteCommandCenter.shared().seekForwardCommand: [ |