Action.SetRendererDisabled


class Action.SetRendererDisabled : Action


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

Summary

Public constructors

SetRendererDisabled(
    tag: @Size(max = 23) String!,
    rendererIndex: Int,
    disabled: Boolean
)

Protected functions

Unit
doActionImpl(
    player: ExoPlayer!,
    trackSelector: DefaultTrackSelector!,
    surface: Surface?
)

Called by doActionAndScheduleNextImpl to perform the action.

Public constructors

SetRendererDisabled

SetRendererDisabled(
    tag: @Size(max = 23) String!,
    rendererIndex: Int,
    disabled: Boolean
)
Parameters
tag: @Size(max = 23) String!

A tag to use for logging.

rendererIndex: Int

The index of the renderer.

disabled: Boolean

Whether the renderer should be disabled.

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 null if no surface is needed.