Add back Shuffle All and fix Play All

This commit is contained in:
Arkadiusz Fal
2022-09-04 17:23:02 +02:00
parent 1744210615
commit 14b0316724
5 changed files with 29 additions and 4 deletions

View File

@@ -8,7 +8,9 @@ extension PlayerModel {
currentItem?.video
}
func play(_ videos: [Video]) {
func play(_ videos: [Video], shuffling: Bool = false) {
playbackMode = shuffling ? .shuffle : .queue
videos.forEach { enqueueVideo($0, loadDetails: false) }
#if os(iOS)