loopLongAudio static method
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);
}