mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

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