From 3d16ab1a311d16cd5a07feca916494869a80d264 Mon Sep 17 00:00:00 2001 From: der richter Date: Wed, 22 Jan 2020 11:07:28 +0100 Subject: mac: add support for PLAYONLY and PAUSEONLY key codes to MediaPlayer Fixes #7365 --- osdep/macos/remote_command_center.swift | 6 +++--- 1 file 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: [ -- cgit v1.2.3