Better now playing and detail of album

This commit is contained in:
2025-12-14 22:25:57 +08:00
parent 49854b44e1
commit a64c613d00
8 changed files with 765 additions and 283 deletions

View File

@@ -19,6 +19,10 @@ class AudioHandler {
await _player.open(Media(path));
}
Future<void> openPlaylist(List<Media> medias, {int initialIndex = 0}) async {
await _player.open(Playlist(medias, index: initialIndex), play: true);
}
void dispose() {
_player.dispose();
}