Add persistent mini player

This commit is contained in:
lucast committed 2026-10-07 02:34:26 +02:00
1 parent f7e204f2d8
commit f6f370d5ca
3 files changed
+134

No files matched your search

+5
View File
@@ -191,6 +191,11 @@ final class PlayerManager: ObservableObject {
errorMessage = nil
}
func artworkURL(for track: Track) -> URL? {
guard case .value(let album) = track.album else { return nil }
return apiConfiguration.mediaURL(for: album.file)
}
func shuffleUpcoming() {
let currentIndex = player.currentIndex
guard currentIndex >= 0, player.items.count - currentIndex > 2 else { return }