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