State information about current playback including track metadata and progress

interface PlaybackState {
    isPlaying: boolean;
    currentTrackId: null | string;
    currentTrackName: null | string;
    currentArtistName: null | string;
    currentAlbumName: null | string;
    currentAlbumArt: null | string;
    currentDeviceName: null | string;
    currentDeviceType: null | string;
    currentDeviceVolume: null | number;
    currentTrackDuration: null | number;
    currentTrackProgress: null | number;
    currentTrackProgressPercent: null | number;
    lastUpdated: null | number;
    recentTracks?: string[];
    libraryStatusLogged?: boolean;
    totalPauseDuration?: number;
    pauseStartTime?: number;
    lastSyncTime?: null | number;
    isInLibrary?: boolean;
    lastProgress?: number;
    lastTrackChangeTimestamp?: null | number;
    deviceId?: null | string;
    deviceName?: null | string;
}

Properties

isPlaying: boolean
currentTrackId: null | string
currentTrackName: null | string
currentArtistName: null | string
currentAlbumName: null | string
currentAlbumArt: null | string
currentDeviceName: null | string
currentDeviceType: null | string
currentDeviceVolume: null | number
currentTrackDuration: null | number
currentTrackProgress: null | number
currentTrackProgressPercent: null | number
lastUpdated: null | number
recentTracks?: string[]
libraryStatusLogged?: boolean
totalPauseDuration?: number
pauseStartTime?: number
lastSyncTime?: null | number
isInLibrary?: boolean
lastProgress?: number
lastTrackChangeTimestamp?: null | number
deviceId?: null | string
deviceName?: null | string