playFolder static method
Plays every audio file in a folder (not on web). UAudio.playFolder("/storage/emulated/0/Music")
Implementation
static Future<void> playFolder(String directoryPath, {bool recursive = true, int startAt = 0}) async {
final List<UMediaSource> sources = await scanFolder(directoryPath, recursive: recursive);
if (sources.isEmpty) return;
await controller.openQueue(sources, startIndex: startAt, autoPlay: true);
}