public final class

Action.PlayUntilPosition

extends Action

 java.lang.Object

androidx.media3.test.utils.Action

↳androidx.media3.test.utils.Action.PlayUntilPosition

Overview

Schedules a play action to be executed, waits until the player reaches the specified position, and pauses the player again.

Summary

Constructors
publicPlayUntilPosition(java.lang.String tag, int mediaItemIndex, long positionMs)

Methods
protected abstract voiddoActionImpl(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface)

Called by Action to perform the action.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public PlayUntilPosition(java.lang.String tag, int mediaItemIndex, long positionMs)

Parameters:

tag: A tag to use for logging.
mediaItemIndex: The media item index at which the player should be paused again.
positionMs: The position in that media item at which the player should be paused again.

Methods

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

Called by Action to perform the action.

Parameters:

player: The player to which the action should be applied.
trackSelector: The track selector to which the action should be applied.
surface: The surface to use when applying actions, or null if no surface is needed.