onChapterChanged

open override fun onChapterChanged(eventTime: AnalyticsListener.EventTime, 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

eventTime
chapter

null when the current position is not in a chapter.