Add persistent mini player
This commit is contained in:
1 parent
f7e204f2d8
commit
f6f370d5ca
3 files changed
+134
No files matched your search
@@ -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 }
|
||||
|
||||
Reference in new issue
Block a user