Class Action.PlayUntilPosition
- java.lang.Object
-
- com.google.android.exoplayer2.testutil.Action
-
- com.google.android.exoplayer2.testutil.Action.PlayUntilPosition
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.android.exoplayer2.testutil.Action
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 Summary
Constructors Constructor Description PlayUntilPosition(String tag, int windowIndex, long positionMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoActionAndScheduleNextImpl(SimpleExoPlayer player, DefaultTrackSelector trackSelector, Surface surface, HandlerWrapper handler, com.google.android.exoplayer2.testutil.ActionSchedule.ActionNode nextAction)Called byAction.doActionAndScheduleNext(SimpleExoPlayer, DefaultTrackSelector, Surface, HandlerWrapper, ActionNode)to perform the action and to schedule the next action node.protected voiddoActionImpl(SimpleExoPlayer player, DefaultTrackSelector trackSelector, Surface surface)Called byAction.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, HandlerWrapper, ActionNode)to perform the action.-
Methods inherited from class com.google.android.exoplayer2.testutil.Action
doActionAndScheduleNext
-
-
-
-
Constructor Detail
-
PlayUntilPosition
public PlayUntilPosition(String tag, int windowIndex, long positionMs)
- Parameters:
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.
-
-
Method Detail
-
doActionAndScheduleNextImpl
protected void doActionAndScheduleNextImpl(SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface, HandlerWrapper handler, @Nullable com.google.android.exoplayer2.testutil.ActionSchedule.ActionNode nextAction)
Description copied from class:ActionCalled byAction.doActionAndScheduleNext(SimpleExoPlayer, DefaultTrackSelector, Surface, HandlerWrapper, ActionNode)to perform the action and to schedule the next action node.- Overrides:
doActionAndScheduleNextImplin classAction- 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, ornullif 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, ornullif there's no next action.
-
doActionImpl
protected void doActionImpl(SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface)
Description copied from class:ActionCalled byAction.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, HandlerWrapper, ActionNode)to perform the action.- Specified by:
doActionImplin classAction- 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, ornullif no surface is needed.
-
-