Action.PlayUntilPosition
Artifact: androidx.media3:media3-test-utils
class Action.PlayUntilPosition : Action
| kotlin.Any | ||
| ↳ | androidx.media3.test.utils.Action | |
| ↳ | androidx.media3.test.utils.Action.PlayUntilPosition |
Schedules a play action to be executed, waits until the player reaches the specified position, and pauses the player again.
Summary
Public constructors |
|---|
PlayUntilPosition( |
Protected functions |
|
|---|---|
Unit |
doActionImpl(Called by |
Public constructors
PlayUntilPosition
PlayUntilPosition(
tag: @Size(max = 23) String!,
mediaItemIndex: Int,
positionMs: Long
)
Protected functions
doActionImpl
protected fun doActionImpl(
player: ExoPlayer!,
trackSelector: DefaultTrackSelector!,
surface: Surface?
): Unit
Called by doActionAndScheduleNextImpl to perform the action.
| Parameters | |
|---|---|
player: ExoPlayer! |
The player to which the action should be applied. |
trackSelector: DefaultTrackSelector! |
The track selector to which the action should be applied. |
surface: Surface? |
The surface to use when applying actions, or |