AudioFocusStrategy.request constructor
const
AudioFocusStrategy.request({})
Request focus
resumeAfterInterruption : When other app request focus (phone call, other player like spotify play), pause the AssetMediaPlayer
resumeOthersPlayersAfterDone : When this player finish to play, tell others native players (like spotify), to resume
Implementation
const AudioFocusStrategy.request(
{this.resumeAfterInterruption = false,
this.resumeOthersPlayersAfterDone = false})
: request = true;