play static method

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

Plays a single run of the given file, with a given volume.

Implementation

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