SpotifyApiSpotify LogoJS

CurrentlyPlayingContext player.d.ts#L104

extends CurrentlyPlaying

The currently playing context of the player api.

https://developer.spotify.com/documentation/web-api/reference/#object-currentlyplayingcontextobject

Properties:

NameTypeDescription
actionsContextDisallowsAllows to update the user interface based on which playback actions are available within the current context.
context"null" | PlayerContextThe context.
currently_playing_type"episode" | "track" | "ad" | "unknown"The object type of the currently playing item.
deviceDeviceThe device that is currently active.
is_playingbooleanIf something is currently playing, return true.
item"null" | Track | EpisodeThe item of the context.
progress_ms"null" | numberProgress into the currently playing track or episode.
repeat_stateRepeatStateThe repeat state.
shuffle_state"off" | "on"The shuffle state.
timestampnumberUnix Millisecond Timestamp when data was fetched.