setPlayWhenReady

abstract fun setPlayWhenReady(playWhenReady: Boolean)

Sets whether playback should proceed when getPlaybackState == STATE_READY.

If the player is already in the ready state then this method can be used to pause and resume playback.

Parameters

playWhenReady

Whether playback should proceed when ready.