Action.AddMediaItems, Action.ClearMediaItems, Action.ClearVideoSurface, Action.ExecuteRunnable, Action.MoveMediaItem, Action.PlayUntilPosition, Action.Prepare, Action.RemoveMediaItem, Action.RemoveMediaItems, Action.Seek, Action.SendMessages, Action.SetAudioAttributes, Action.SetMediaItems, Action.SetMediaItemsResetPosition, Action.SetPlaybackParameters, Action.SetPlayWhenReady, Action.SetRendererDisabled, Action.SetRepeatMode, Action.SetShuffleModeEnabled, Action.SetShuffleOrder, Action.SetVideoSurface, Action.Stop, Action.ThrowPlaybackException, Action.WaitForIsLoading, Action.WaitForMessage, Action.WaitForPendingPlayerCommands, Action.WaitForPlaybackState, Action.WaitForPlayWhenReady, Action.WaitForPositionDiscontinuity, Action.WaitForTimelineChanged| Constructor | Description |
|---|---|
PlayUntilPosition(String tag,
int windowIndex,
long positionMs) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
doActionAndScheduleNextImpl(SimpleExoPlayer player,
DefaultTrackSelector trackSelector,
Surface surface,
HandlerWrapper handler,
com.google.android.exoplayer2.testutil.ActionSchedule.ActionNode nextAction) |
Called by
Action.doActionAndScheduleNext(SimpleExoPlayer, DefaultTrackSelector, Surface,
HandlerWrapper, ActionNode) to perform the action and to schedule the next action node. |
protected void |
doActionImpl(SimpleExoPlayer player,
DefaultTrackSelector trackSelector,
Surface surface) |
Called by
Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface,
HandlerWrapper, ActionNode) to perform the action. |
doActionAndScheduleNextpublic PlayUntilPosition(String tag, int windowIndex, long positionMs)
tag - A tag to use for logging.windowIndex - The window index at which the player should be paused again.positionMs - The position in that window at which the player should be paused again.protected void doActionAndScheduleNextImpl(SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface, HandlerWrapper handler, @Nullable com.google.android.exoplayer2.testutil.ActionSchedule.ActionNode nextAction)
ActionAction.doActionAndScheduleNext(SimpleExoPlayer, DefaultTrackSelector, Surface,
HandlerWrapper, ActionNode) to perform the action and to schedule the next action node.doActionAndScheduleNextImpl in class Actionplayer - 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.handler - The handler to use to pass to the next action.nextAction - The next action to schedule immediately after this action finished, or
null if there's no next action.protected void doActionImpl(SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface)
ActionAction.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface,
HandlerWrapper, ActionNode) to perform the action.doActionImpl in class Actionplayer - 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.