Stay organized with collections Save and categorize content based on your preferences.

Action.Seek

class Action.Seek : Action


Calls seekTo or seekTo.

Summary

Public constructors

Seek(tag: @Size(max = 23) String!, positionMs: Long)

Action calls seekTo.

Seek(
    tag: String!,
    mediaItemIndex: Int,
    positionMs: Long,
    catchIllegalSeekException: Boolean
)

Action calls seekTo.

Protected functions

Unit
doActionImpl(
    player: ExoPlayer!,
    trackSelector: DefaultTrackSelector!,
    surface: Surface?
)

Called by doActionAndScheduleNextImpl to perform the action.

Public constructors

Seek

Seek(tag: @Size(max = 23) String!, positionMs: Long)

Action calls seekTo.

Parameters
tag: @Size(max = 23) String!

A tag to use for logging.

positionMs: Long

The seek position.

Seek

Seek(
    tag: String!,
    mediaItemIndex: Int,
    positionMs: Long,
    catchIllegalSeekException: Boolean
)

Action calls seekTo.

Parameters
tag: String!

A tag to use for logging.

mediaItemIndex: Int

The media item to seek to.

positionMs: Long

The seek position.

catchIllegalSeekException: Boolean

Whether IllegalSeekPositionException should be silently caught or not.

Protected functions

doActionImpl

protected fun doActionImpl(
    player: ExoPlayer!,
    trackSelector: DefaultTrackSelector!,
    surface: Surface?
): Unit

Called by doActionAndScheduleNextImpl to perform the action.

Parameters
player: ExoPlayer!

The player to which the action should be applied.

trackSelector: DefaultTrackSelector!

The track selector to which the action should be applied.

surface: Surface?

The surface to use when applying actions, or null if no surface is needed.