selectChapter

abstract fun selectChapter(index: Int)

This will seek to the chapter selected by index. If its tried to select a chapter which does not exist an out of bound exception is though.

Please mind that selecting a chapter can lead to a race condition. This can happen when ExoPlayer changes the track while a chapter is selected. Because of this you must always wrap a call to this function in a try/catch statement.

Parameters

index

the index of the chapter to which to seek.