mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 19:34:14 +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]] = [
|
var config: [MPRemoteCommand:[String:Any]] = [
|
||||||
MPRemoteCommandCenter.shared().pauseCommand: [
|
MPRemoteCommandCenter.shared().pauseCommand: [
|
||||||
"mpKey": MP_KEY_PAUSE,
|
"mpKey": MP_KEY_PAUSEONLY,
|
||||||
"keyType": KeyType.normal
|
"keyType": KeyType.normal
|
||||||
],
|
],
|
||||||
MPRemoteCommandCenter.shared().playCommand: [
|
MPRemoteCommandCenter.shared().playCommand: [
|
||||||
"mpKey": MP_KEY_PLAY,
|
"mpKey": MP_KEY_PLAYONLY,
|
||||||
"keyType": KeyType.normal
|
"keyType": KeyType.normal
|
||||||
],
|
],
|
||||||
MPRemoteCommandCenter.shared().stopCommand: [
|
MPRemoteCommandCenter.shared().stopCommand: [
|
||||||
@ -47,7 +47,7 @@ class RemoteCommandCenter: NSObject {
|
|||||||
"keyType": KeyType.normal
|
"keyType": KeyType.normal
|
||||||
],
|
],
|
||||||
MPRemoteCommandCenter.shared().togglePlayPauseCommand: [
|
MPRemoteCommandCenter.shared().togglePlayPauseCommand: [
|
||||||
"mpKey": MP_KEY_PLAYPAUSE,
|
"mpKey": MP_KEY_PLAY,
|
||||||
"keyType": KeyType.normal
|
"keyType": KeyType.normal
|
||||||
],
|
],
|
||||||
MPRemoteCommandCenter.shared().seekForwardCommand: [
|
MPRemoteCommandCenter.shared().seekForwardCommand: [
|
||||||
|
Loading…
Reference in New Issue
Block a user