Action
@UnstableApi
public abstract class Action
Base class for actions to perform during playback tests.
Summary
Nested types |
|---|
public final class Action.AddMediaItems extends ActionCalls |
public class Action.ClearMediaItems extends ActionCalls |
public final class Action.ClearVideoSurface extends ActionCalls |
public final class Action.ExecuteRunnable extends ActionCalls |
public class Action.MoveMediaItem extends ActionCalls |
public final class Action.PlayUntilPosition extends ActionSchedules a play action to be executed, waits until the player reaches the specified position, and pauses the player again. |
public final class Action.Prepare extends ActionCalls |
public class Action.RemoveMediaItem extends ActionCalls |
public class Action.RemoveMediaItems extends ActionCalls |
public final class Action.Seek extends Action |
public final class Action.SendMessages extends ActionCalls |
public final class Action.SetAudioAttributes extends ActionCalls |
public final class Action.SetMediaItems extends ActionCalls |
public final class Action.SetMediaItemsResetPosition extends ActionCalls |
public final class Action.SetPlayWhenReady extends ActionCalls |
public final class Action.SetPlaybackParameters extends ActionCalls |
public final class Action.SetRendererDisabled extends ActionUpdates the |
public final class Action.SetRepeatMode extends ActionCalls |
public final class Action.SetShuffleModeEnabled extends ActionCalls |
public final class Action.SetShuffleOrder extends ActionCalls |
public final class Action.SetVideoSurface extends ActionCalls |
public final class Action.Stop extends ActionCalls |
public final class Action.ThrowPlaybackException extends ActionThrows a playback exception on the playback thread. |
public final class Action.WaitForIsLoading extends ActionWaits for a specified loading state, returning either immediately or after a call to |
public final class Action.WaitForMessage extends ActionWaits for a player message to arrive. |
public final class Action.WaitForPendingPlayerCommands extends ActionWaits until the player acknowledged all pending player commands. |
public final class Action.WaitForPlayWhenReady extends ActionWaits for a specified playWhenReady value, returning either immediately or after a call to |
public final class Action.WaitForPlaybackState extends ActionWaits for a specified playback state, returning either immediately or after a call to |
public final class Action.WaitForPositionDiscontinuity extends ActionWaits for |
public final class Action.WaitForTimelineChanged extends ActionWaits for |
Protected methods |
|
|---|---|
abstract void |
doActionImpl(Called by |
Public constructors
Protected methods
doActionImpl
protected abstract 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 |