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 _preparePlayer(
file,
volume,
ReleaseMode.loop,
PlayerMode.mediaPlayer,
);
}