increased cache buffer ksplayer

This commit is contained in:
tapframe 2026-01-05 00:02:03 +05:30
parent 81b97da75e
commit 4dd1fca0a7

View file

@ -237,10 +237,10 @@ class KSPlayerView: UIView {
options.registerRemoteControll = false
// PERFORMANCE OPTIMIZATION: Buffer durations for smooth high bitrate playback
// preferredForwardBufferDuration = 3.0s: Slightly increased to reduce rebuffering during playback
options.preferredForwardBufferDuration = 1.0
// maxBufferDuration = 120.0s: Increased to allow the player to cache more content ahead of time (2 minutes)
options.maxBufferDuration = 120.0
// preferredForwardBufferDuration = 5.0s: Increased to prevent stalling on network hiccups
options.preferredForwardBufferDuration = 5.0
// maxBufferDuration = 300.0s: Increased to allow 5 minutes of cache ahead
options.maxBufferDuration = 300.0
// Enable "second open" to relax startup/seek buffering thresholds (already enabled)
options.isSecondOpen = true