resolveSeekIntent

abstract fun resolveSeekIntent(positionMs: Long, seekPreference: SeekPreference? = null)

Solicits to seek to the desired time position. This is just providing the player's seek position intent since the real seek position needs to be determined by the ad playback rules (a.k.a. scrub management policies). For example: A user may scrub over one/several Ad Breaks but on resume of the video play:

  • the user will see the last Ad Break before the content will resume.
  • the playback will resume at the point the user dropped the scrubber.
In the example above the [PlaybackPolicyHandler] provider will need to call `Player.seek` twice. The first call is to seek to the beginning of the Ad Break and the second call, after the Advert Break is played out, is to the user specified seek position.

Parameters

positionMs

Long The playhead position that the user wishes to seek to, in seconds

seekPreference

The SeekPreference to be used, just for this seek.