loop static method

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

Plays, and keeps looping the given file.

Implementation

static Future<AudioPlayer> loop(String file, {double volume = 1.0}) {
  return _preparePlayer(
    file,
    volume,
    ReleaseMode.loop,
    PlayerMode.lowLatency,
  );
}