Action.MoveMediaItem


public class Action.MoveMediaItem extends Action


Calls moveMediaItem.

Summary

Public constructors

MoveMediaItem(@Size(max = 23) String tag, int currentIndex, int newIndex)

Protected methods

void
doActionImpl(
    ExoPlayer player,
    DefaultTrackSelector trackSelector,
    @Nullable Surface surface
)

Called by doActionAndScheduleNextImpl to perform the action.

Public constructors

MoveMediaItem

public MoveMediaItem(@Size(max = 23) String tag, int currentIndex, int newIndex)
Parameters
@Size(max = 23) String tag

A tag to use for logging.

int currentIndex

The current index of the media item.

int newIndex

The new index of the media item.

Protected methods

doActionImpl

protected void doActionImpl(
    ExoPlayer player,
    DefaultTrackSelector trackSelector,
    @Nullable Surface surface
)

Called by doActionAndScheduleNextImpl to perform the action.

Parameters
ExoPlayer player

The player to which the action should be applied.

DefaultTrackSelector trackSelector

The track selector to which the action should be applied.

@Nullable Surface surface

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