CurrentlyPlayingContext player.d.ts#L104
extends CurrentlyPlaying
The currently playing context of the player api.
Properties:
Name | Type | Description |
---|---|---|
actions | ContextDisallows | Allows to update the user interface based on which playback actions are available within the current context. |
context | "null" | PlayerContext | The context. |
currently_playing_type | "episode" | "track" | "ad" | "unknown" | The object type of the currently playing item. |
device | Device | The device that is currently active. |
is_playing | boolean | If something is currently playing, return true. |
item | "null" | Track | Episode | The item of the context. |
progress_ms | "null" | number | Progress into the currently playing track or episode. |
repeat_state | RepeatState | The repeat state. |
shuffle_state | "off" | "on" | The shuffle state. |
timestamp | number | Unix Millisecond Timestamp when data was fetched. |