In ExoPlayer < 2.x there was a class PlayerControl with pause() and resume() functions but it was removed. I can\'t fi
ExoPlayer < 2.x
PlayerControl
pause()
resume()
You can use void setPlayWhenReady(boolean playWhenReady). If Exo is ready, passing false will pause the player. Passing true will resume it. You can check the player's state using getPlaybackState().
void setPlayWhenReady(boolean playWhenReady)
false
true
getPlaybackState()