Action.SetAudioAttributes


class Action.SetAudioAttributes : Action


Calls setAudioAttributes.

Summary

Public constructors

SetAudioAttributes(
    tag: String!,
    audioAttributes: AudioAttributes!,
    handleAudioFocus: Boolean
)

Protected functions

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

Called by doActionAndScheduleNextImpl to perform the action.

Public constructors

SetAudioAttributes

SetAudioAttributes(
    tag: String!,
    audioAttributes: AudioAttributes!,
    handleAudioFocus: Boolean
)
Parameters
tag: String!

A tag to use for logging.

audioAttributes: AudioAttributes!

The attributes to use for audio playback.

handleAudioFocus: Boolean

True if the player should handle audio focus, false otherwise.

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.