Previously, I used a standard MediaPlayer for playback, which had an isPlaying () method - whether the player was playing at the moment or not. I switched to ExoPlayer, but now I don’t know how I know the player is currently playing.

  • getPlayWhenReady? - McDaggen

1 answer 1

 int getPlaybackState() 

Returns the current state of the player.

  • mediaPlayer1.getPlaybackState ()! = Player.STATE_IDLE It helped - alex11