mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
fixed buffer bar not updating
fixed = sometimes when stream is opened from continue watching section the bar doesnt update
This commit is contained in:
parent
2ead0dc6d4
commit
6c43d792b2
2 changed files with 4 additions and 2 deletions
|
|
@ -141,7 +141,9 @@ class CustomMediaPlayerViewController: UIViewController {
|
|||
let lastPlayedTime = UserDefaults.standard.double(forKey: "lastPlayedTime_\(fullUrl)")
|
||||
if lastPlayedTime > 0 {
|
||||
let seekTime = CMTime(seconds: lastPlayedTime, preferredTimescale: 1)
|
||||
self.player.seek(to: seekTime)
|
||||
self.player.seek(to: seekTime) { [weak self] _ in
|
||||
self?.updateBufferValue()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ struct SettingsViewPlayer: View {
|
|||
Toggle("Force Landscape", isOn: $isAlwaysLandscape)
|
||||
.tint(.accentColor)
|
||||
|
||||
Toggle("Two finger hold for pause",isOn: $holdForPauseEnabled)
|
||||
Toggle("Two Finger Hold for Pause",isOn: $holdForPauseEnabled)
|
||||
.tint(.accentColor)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue