onChapterChanged

open override fun onChapterChanged(chapter: Chapter?)

onChapterChanged is called when either:

  • The player position changes while playing automatically.

  • The use seeks to a new position.

  • The playlist changes.

Parameters

chapter

null when the current position is not in a chapter.