Action.ThrowPlaybackException
Artifact: androidx.media3:media3-test-utils
public final class Action.ThrowPlaybackException extends Action
| java.lang.Object | ||
| ↳ | androidx.media3.test.utils.Action | |
| ↳ | androidx.media3.test.utils.Action.ThrowPlaybackException |
Throws a playback exception on the playback thread.
Summary
Public constructors |
|---|
ThrowPlaybackException( |
Protected methods |
|
|---|---|
void |
doActionImpl(Called by |
Public constructors
ThrowPlaybackException
public ThrowPlaybackException(
@Size(max = 23) String tag,
ExoPlaybackException exception
)
| Parameters | |
|---|---|
@Size(max = 23) String tag |
A tag to use for logging. |
ExoPlaybackException exception |
The exception to throw. |
Protected methods
doActionImpl
protected void doActionImpl(
ExoPlayer player,
DefaultTrackSelector trackSelector,
@Nullable Surface surface
)
Called by doActionAndScheduleNextImpl to perform the action.
| Parameters | |
|---|---|
ExoPlayer player |
The player to which the action should be applied. |
DefaultTrackSelector trackSelector |
The track selector to which the action should be applied. |
@Nullable Surface surface |
The surface to use when applying actions, or |