I searched two days for this question in github but i can\'t find true answer . I want example for detecting pause / resume in ExoPlayer > 2.x . An
pause / resume
ExoPlayer > 2.x
It must be that since the other answers were posted, a new method has been provided in Player.EventListener. This works well for me:
override fun onIsPlayingChanged(isPlaying: Boolean) { // your code here }
If isPlaying is false, it is paused, otherwise playing.