The Ï„ Player API
setAudioFocus.
setAudioFocus()
focus: parameter possible values are
AudioFocus.requestFocus (request focus, but do not do anything special with others App)
AudioFocus.requestFocusAndStopOthers (your app will have exclusive use of the output audio)
AudioFocus.requestFocusAndDuckOthers (if another App like Spotify use the output audio, its volume will be lowered)
Other parameters :
Please look to to understand the meaning of the other parameters
Example:
</div>