public final class

Action.SendMessages

extends Action

 java.lang.Object

androidx.media3.test.utils.Action

↳androidx.media3.test.utils.Action.SendMessages

Overview

Calls ExoPlayer and PlayerMessage.send().

Summary

Constructors
publicSendMessages(java.lang.String tag, PlayerMessage.Target target, int mediaItemIndex, long positionMs, boolean deleteAfterDelivery)

publicSendMessages(java.lang.String tag, PlayerMessage.Target target, long positionMs)

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

Called by Action to perform the action.

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

Constructors

public SendMessages(java.lang.String tag, PlayerMessage.Target target, long positionMs)

Parameters:

tag: A tag to use for logging.
target: A message target.
positionMs: The position at which the message should be sent, in milliseconds.

public SendMessages(java.lang.String tag, PlayerMessage.Target target, int mediaItemIndex, long positionMs, boolean deleteAfterDelivery)

Parameters:

tag: A tag to use for logging.
target: A message target.
mediaItemIndex: The media item index at which the message should be sent, or C.INDEX_UNSET for the current media item.
positionMs: The position at which the message should be sent, in milliseconds.
deleteAfterDelivery: Whether the message will be deleted after delivery.

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.