seekToNextSegment

abstract fun seekToNextSegment(snapToVisiblePagesBoundary: Boolean = false)

Seeks to the next segment in the timeline, if such segment exists.

Parameters

snapToVisiblePagesBoundary

If set to true while seeking from a segment that spans across the end of the currently visible pages and the next page(s), the media player will seek inside that segment to match the start position of the content on the next page. Calling seekToNextSegment again will then seek to the beginning of the next segment. If set to false, the media player will seek to the beginning of the next segment.