Google-play-music-desktop-player-unofficial-: Touchbar support for macOS Sierra

Created on 29 Nov 2016  路  7Comments  路  Source: MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-

macOS Sierra now has new APIs for global playback control for MacBook models with touchbar. Using them lets users control playback position and skip tracks from anywhere (effectively replacing the missing media keys). See GIF: https://cnet4.cbsistatic.com/img/UsolysTQYPgPtMiSWTK-Dc24JGY=/fit-in/370x0/2016/11/22/190aaf99-eda0-4624-9e7e-8f15aad7f088/scrub-itunes-touch-bar.gif

Having that support in Desktop Player would be great.

Most helpful comment

touch bar shot 2016-12-25 at 10 30 24 am

All 7 comments

This should be tracked upstream with my PR's up there.

https://github.com/electron/electron/pull/8095

Umm, not really since you're not supposed to use the NSTouchBar API for that - but the new global multimedia API added in Sierra (similar to the iOS one), where you need to signal to the OS what you're playing and then handle multimedia events back. Essentially replaces the multimedia keys and supports AirPods and whatnot.

See MediaPlayer API: https://developer.apple.com/library/content/releasenotes/MacOSX/WhatsNewInOSX/Articles/macOSSierra10.12.html

The TouchBar APIs listed in the upstream won't work for that :/

Okay, totally didn't know that existed. I'll raise an upstream issue for supporting that new API then :D

FYI I just got this working in Electron and I'll be raising a PR shortly 馃憤

touch bar shot 2016-12-25 at 10 30 24 am

Any news on the touchbar support? The screenshot looks amazing!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ARTVRO picture ARTVRO  路  3Comments

oscarfroberg picture oscarfroberg  路  3Comments

tehdef picture tehdef  路  4Comments

logictom picture logictom  路  4Comments

damiong28 picture damiong28  路  3Comments