public final class

Action.WaitForPlayWhenReady

extends Action

 java.lang.Object

androidx.media3.test.utils.Action

↳androidx.media3.test.utils.Action.WaitForPlayWhenReady

Overview

Waits for a specified playWhenReady value, returning either immediately or after a call to .

Summary

Constructors
publicWaitForPlayWhenReady(java.lang.String tag, boolean playWhenReady)

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

Called by Action to perform the action.

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

Constructors

public WaitForPlayWhenReady(java.lang.String tag, boolean playWhenReady)

Parameters:

tag: A tag to use for logging.
playWhenReady: The playWhenReady value to wait for.

Methods

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.