In this new release you now get player state with every player event, and the player state contains information about the currently playing track and its duration.Instead of keeping a copy of the player state from native player inside Player object, getPlayerState() is now asynchronous and requires a callback.

We have removed the following methods from the Player object:

  • isPlaying()
  • getPlaybackPosition()
  • isShuffling()
  • isRepeating()

This data can now be retrieved asynchronously with getPlayerState() or from the player state passed with player events.

In addition, there is a new callback for errors while logging in and the Player initialization callback is now triggered after the user successfully logs in.