getPlaybackState

abstract fun getPlaybackState(): Int

Returns the current state of the player.

Return

One of the STATE_IDLE, STATE_BUFFERING, STATE_READY, STATE_ENDED.