mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-18 15:12:09 +00:00
added nil checker for hold speed
This commit is contained in:
parent
f5de72c3f0
commit
586e9731f8
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class NormalPlayer: AVPlayerViewController {
|
|||
guard let player = player else { return }
|
||||
originalRate = player.rate
|
||||
let holdSpeed = UserDefaults.standard.float(forKey: "holdSpeedPlayer")
|
||||
player.rate = holdSpeed
|
||||
player.rate = holdSpeed > 0 ? holdSpeed : 2.0
|
||||
}
|
||||
|
||||
private func endHoldSpeed() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue