onChapterChanged

open fun onChapterChanged(eventTime: AnalyticsListener.EventTime, chapter: Chapter?)

Called when the current chapter changes. This can occur when either:

  • The player's position changes naturally during playback.

  • The user seeks to a new position.

  • The playlist changes.

Parameters

eventTime
chapter

The active Chapter, or null if the current position is not within a chapter.