willSeekTo

open override fun willSeekTo(positionMs: Long, timeline: MutableList<AdBreak>?, playhead: Long): Long

Returns to the client the playhead position, in milliseconds, that the user can seek to.

Return

the actual playhead position that the user can seek to, in milliseconds, based on the implemented policy.

Parameters

positionMs

the playhead position that the user wishes to seek to, in milliseconds.

timeline

The stream timeline represented as an array of AdBreak objects.

playhead

The current playhead position.