Class Action

    • Constructor Detail

      • Action

        public Action​(@Size(max=23L)
                      String tag,
                      @Nullable
                      String description)
        Parameters:
        tag - A tag to use for logging.
        description - A description to be logged when the action is executed, or null if no logging is required.
    • Method Detail

      • doActionAndScheduleNext

        public final void doActionAndScheduleNext​(ExoPlayer player,
                                                  DefaultTrackSelector trackSelector,
                                                  @Nullable
                                                  Surface surface,
                                                  HandlerWrapper handler,
                                                  @Nullable
                                                  com.google.android.exoplayer2.testutil.ActionSchedule.ActionNode nextAction)
        Executes the action and schedules the next.
        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.
        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.
      • doActionAndScheduleNextImpl

        protected void doActionAndScheduleNextImpl​(ExoPlayer player,
                                                   DefaultTrackSelector trackSelector,
                                                   @Nullable
                                                   Surface surface,
                                                   HandlerWrapper handler,
                                                   @Nullable
                                                   com.google.android.exoplayer2.testutil.ActionSchedule.ActionNode nextAction)
        Called by doActionAndScheduleNext(ExoPlayer, DefaultTrackSelector, Surface, HandlerWrapper, ActionNode) to perform the action and to schedule the next action node.
        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.
        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.