kirtan-shah / nowplaying-cli

macOS command-line utility for retrieving currently playing media
GNU General Public License v3.0
148 stars 9 forks source link

Possible to do this using non-private APIs? #5

Closed RSully closed 1 year ago

RSully commented 1 year ago

Is it possible to leverage the Media Player framework to return this data without using private APIs? I saw this API reference, but haven't had time to dig into it too much: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfocenter/1615903-nowplayinginfo

kirtan-shah commented 1 year ago

I experimented with that and I believe that is meant for apps to report what media they are playing, and is therefore write-only.