- <init>
Constructs an AudioFocusManager to automatically handle audio focus for a
player.
- handlePrepare
Called by a player as part of ExoPlayer#prepare(MediaSource,boolean,boolean).
- handleSetPlayWhenReady
Called by the player as part of ExoPlayer#setPlayWhenReady(boolean).
- handleStop
Called by the player as part of ExoPlayer#stop(boolean).
- setAudioAttributes
Sets audio attributes that should be used to manage audio focus.
- abandonAudioFocus
- abandonAudioFocusDefault
- abandonAudioFocusV26
- convertAudioAttributesToFocusGain
Converts AudioAttributes to one of the audio focus request.This follows the
class Javadoc of AudioFo
- getVolumeMultiplier
Gets the current player volume multiplier.
- handleIdle
- requestAudioFocus