mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
increased cache buffer ksplayer
This commit is contained in:
parent
81b97da75e
commit
4dd1fca0a7
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue