A tiny cross-platform library for extracting information about the music/image/video that is Now Playing on the system. No CGo required!
Supported OS:
- Windows (using GlobalSystemMediaTransportControlsSessionManager)
- Linux (using plain Go: DBus/MPRIS)
This is essentially libnp rewritten in plain Go.
The API is well-documented in its
info, err := libnp.GetInfo(context.Background())
fmt.Println(info.Album)
Used in small-scale production environments.
The API could be slightly changed in backwards-incompatible ways for now.
- Add darwin
- Add web
MIT