Getting Current Playback Info

Wraps around this (and this one, since I can't link two at once) Spotify API endpoint

How to use

The methods Spotify.Player.GetCurrentPlaybackInfo() and Spotify.Player.GetFullPlaybackInfo() both return info about playback, however, Spotify.Player.GetCurrentPlaybackInfo() does not return the device that playback is taking play on, so you can NOT get the playback volume without calling Spotify.Player.GetFullPlaybackInfo().

Example

This example will:

A) Get the current playback info with Spotify.Player.GetCurrentPlaybackInfo()

B) Show how many seconds into the song the player is, and the name property of the currently playing track

CurrentPlayback := Spotify.Player.GetCurrentPlaybackInfo()
MsgBox, % "You are currently " Ceil(CurrentPlayback.progress_ms / 1000) " seconds into the song """ CurrentPlayback.Track.Name """"