Repository navigation
[WIP] MPRemoteCommandCenter integration - #8280
MarshallOfSound wants to merge 3 commits into
Conversation
|
/cc @kevinsawicki Looks like this PR needs XCode version bumps (or at least macOS SDK version bumps) on the build agents as well. |
|
Could we build this API with Windows in mind? Windows 10 supports something to that the naming of this new API could also apply: |
|
@levrik For now I have no intention of personally adding support for the Windows API for this (although I would love it). The current API style however does leave itself open for expansion into this windows API and it was in the back of my mind while I was implementing this. This is mostly due to me not having a windows machine with fast enough internet to download |
|
@MarshallOfSound Okay, nice. Maybe I find time to give the Windows API a try. |
|
@levrik, I am also looking into implementing the Windows side of this feature. If you would like to help with this, I would be glad to have your help. @MarshallOfSound referred me to this pull request as a place to start. |
|
@KytechN24 I looked a bit into it but gave up. I have not really much C++ knowledge and to access the Windows API for that you have to use some type of bridge between the Windows Apps API and the "normal" Windows API. I tried to get it working in an isolated environment but I failed. |
This is probably going to be blocked on https://bugs.chromium.org/p/chromium/issues/detail?id=680927 |
|
@kevinsawicki That affects the |
Yes it will |
|
After looking into this a bit, I don't think this is something we can resolve using the forward declarations approach like the touchbar PR did since the The current implementation here does look like something that could be added via a native node module that weak links against the media player framework and could use We can incorporate this change though once Chrome/Electron can build against the 10.12.1+ SDK which will eventually happen. @MarshallOfSound you okay closing this for now or do you still want to experiment with getting this working against a 10.10 SDK? |
|
@kevinsawicki Looking back at the implementation it does look like it could live in a native module. Will close out and experiment with ways of getting this done 👍 |
|
Anyone stumbling upon this, the feature in this PR is now part of this module 👍 |
|
has this been added to electron? the module seems to not work on current versions and probably is not maintained anymore. Is there any alternative to using the macOS APIs for media players with electron? |
|
Interested in this as well, seems like the module is outdated and incomplete |

This allows apps to hook into the new
MPRemoteCommandCenterAPI's on macOS 10.12.2. Pretty sure this breaks on older macOS versions so I need to add a few ifs. It add's two newappAPI's.When I hooked this up to GPMDP it generates the correct system wide touch bar 😄
NOTE: I totally did this on the plane on my way home still it still needs a bit of cleanup 👍
TODO