loopLongAudio static method

Future<AudioPlayer> loopLongAudio(
  1. String file, {
  2. double volume = 1.0,
})

Plays, and keep looping the given file This method supports long audio files

NOTE: Length audio files on Android have an audio gap between loop iterations, this happens due to limitations on Android's native media player features, if you need a gapless loop, prefer the loop method

Implementation

static Future<AudioPlayer> loopLongAudio(String file, {double volume = 1.0}) {
  return audioCache.loop(file, volume: volume);
}