Player¶
-
class
spotify.player.Player(session)[source]¶ Playback controller.
You’ll never need to create an instance of this class yourself. You’ll find it ready to use as the
playerattribute on theSessioninstance.-
state= 'unloaded'¶ The player state.
- The state is initially
PlayerState.UNLOADED. - When a track is loaded, the state changes to
PlayerState.LOADED. - When playback is started the state changes to
PlayerState.PLAYING. - When playback is paused the state changes to
PlayerState.PAUSED. - When the track is unloaded the state changes to
PlayerState.UNLOADEDagain.
- The state is initially
-