mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 02:09:52 +00:00
mac: add support for PLAYONLY and PAUSEONLY key codes to MediaPlayer
Fixes #7365
This commit is contained in:
parent
77d42d5532
commit
3d16ab1a31
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user