Preserve playback rate between restarts

This commit is contained in:
Arkadiusz Fal
2022-11-10 23:00:17 +01:00
parent 04a5224ab0
commit a44cce462a
6 changed files with 19 additions and 11 deletions

View File

@@ -360,8 +360,8 @@ final class MPVBackend: PlayerBackend {
}
}
func setRate(_ rate: Float) {
client?.setDoubleAsync("speed", Double(rate))
func setRate(_ rate: Double) {
client?.setDoubleAsync("speed", rate)
}
func closeItem() {