Package-level declarations
Types
Playback context for the player
A simplified set of restriction controls for the track. By default, these fields will either be set to false or undefined, which indicates that the particular operation is allowed. When the field is set to true
, this means that the operation is not permitted. For example, skipping_next
, skipping_prev
and seeking
will be set to true
when playing an ad track.
This is an object that is provided every time Spotify.Player#getCurrentState is called. It contains information on context, permissions, playback state, the user’s session, and more.
The main constructor for initializing the Web Playback SDK. It should contain an object with the player name, volume and access token.
Options for instantiating the Player
This is an object that is provided in the ready event as an argument. WebPlaybackPlayer objects contain information related to the current player instance of the Web Playback SDK.