public final class

Action.WaitForTimelineChanged

extends Action

 java.lang.Object

androidx.media3.test.utils.Action

↳androidx.media3.test.utils.Action.WaitForTimelineChanged

Overview

Waits for .

Summary

Constructors
publicWaitForTimelineChanged(java.lang.String tag)

Creates action waiting for any timeline change for any reason.

publicWaitForTimelineChanged(java.lang.String tag, Timeline expectedTimeline, int expectedReason)

Creates action waiting for a timeline change for a given reason.

Methods
protected voiddoActionAndScheduleNextImpl(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface, HandlerWrapper handler, androidx.media3.test.utils.ActionSchedule.ActionNode nextAction)

Called by Action to perform the action and to schedule the next action node.

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

Called by Action to perform the action.

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

Constructors

public WaitForTimelineChanged(java.lang.String tag, Timeline expectedTimeline, int expectedReason)

Creates action waiting for a timeline change for a given reason.

Parameters:

tag: A tag to use for logging.
expectedTimeline: The expected timeline or null if any timeline change is relevant.
expectedReason: The expected timeline change reason.

public WaitForTimelineChanged(java.lang.String tag)

Creates action waiting for any timeline change for any reason.

Parameters:

tag: A tag to use for logging.

Methods

protected void doActionAndScheduleNextImpl(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface, HandlerWrapper handler, androidx.media3.test.utils.ActionSchedule.ActionNode nextAction)

Called by Action 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.

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.