public final class

Action.SetRendererDisabled

extends Action

 java.lang.Object

androidx.media3.test.utils.Action

↳androidx.media3.test.utils.Action.SetRendererDisabled

Overview

Updates the DefaultTrackSelector.Parameters of a DefaultTrackSelector to specify whether the renderer at a given index should be disabled.

Summary

Constructors
publicSetRendererDisabled(java.lang.String tag, int rendererIndex, boolean disabled)

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 SetRendererDisabled(java.lang.String tag, int rendererIndex, boolean disabled)

Parameters:

tag: A tag to use for logging.
rendererIndex: The index of the renderer.
disabled: Whether the renderer should be disabled.

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.