Add more playback rates for MPV

This commit is contained in:
Arkadiusz Fal
2022-11-10 23:19:34 +01:00
parent a44cce462a
commit 01d8e28d7c
6 changed files with 25 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ import Foundation
#endif
protocol PlayerBackend {
var suggestedPlaybackRates: [Double] { get }
var model: PlayerModel! { get }
var controls: PlayerControlsModel! { get }
var playerTime: PlayerTimeModel! { get }
@@ -30,6 +31,7 @@ protocol PlayerBackend {
func bestPlayable(_ streams: [Stream], maxResolution: ResolutionSetting) -> Stream?
func canPlay(_ stream: Stream) -> Bool
func canPlayAtRate(_ rate: Double) -> Bool
func playStream(
_ stream: Stream,