Add playback mode menu in AVPlayer on tvOS

This commit is contained in:
Arkadiusz Fal
2022-08-26 01:59:42 +02:00
parent 6deaec90f8
commit 5c038b2aa7
2 changed files with 28 additions and 0 deletions

View File

@@ -30,6 +30,19 @@ final class PlayerModel: ObservableObject {
return "infinity"
}
}
var description: String {
switch self {
case .queue:
return "Queue"
case .shuffle:
return "Queue, shuffled"
case .loopOne:
return "Loop one"
case .related:
return "Autoplay next"
}
}
}
static let availableRates: [Float] = [0.5, 0.67, 0.8, 1, 1.25, 1.5, 2]