AudioFocusStrategy.request constructor

const AudioFocusStrategy.request({
  1. bool resumeAfterInterruption = false,
  2. bool resumeOthersPlayersAfterDone = false,
})

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;