Allow SimpleExoPlayer to handle audio focus
Add automatic audio focus handling to SimpleExoPlayer. Audio focus handling is an opt-in feature that can be requested by passing the system's AudioManager and an AudioFocusConfiguration to SimpleExoPlayer.setAudioFocusConfiguration. When audio focus is being managed by SimpleExoPlayer, the player will transparently handle pausing playback during AUDIOFOCUS_LOSS_TRANSIENT, as well as lowering playback volume during AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=208045732
Showing
with
153 additions
and
62 deletions
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment