Action.SetMediaItemsResetPosition


class Action.SetMediaItemsResetPosition : Action


Calls setMediaSources.

Summary

Public constructors

SetMediaItemsResetPosition(
    tag: String!,
    resetPosition: Boolean,
    mediaSources: Array<MediaSource!>!
)

Protected functions

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

Called by doActionAndScheduleNextImpl to perform the action.

Public constructors

SetMediaItemsResetPosition

SetMediaItemsResetPosition(
    tag: String!,
    resetPosition: Boolean,
    mediaSources: Array<MediaSource!>!
)
Parameters
tag: String!

A tag to use for logging.

resetPosition: Boolean

Whether the position should be reset.

mediaSources: Array<MediaSource!>!

The media sources to populate the playlist with.

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.