fixed buffer bar not updating

fixed = sometimes when stream is opened from continue watching section the bar doesnt update
This commit is contained in:
Seiike 2025-04-03 23:52:40 +02:00
parent 2ead0dc6d4
commit 6c43d792b2
2 changed files with 4 additions and 2 deletions

View file

@ -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()
}
}
}

View file

@ -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)
}