mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
buffer change ksplayer
This commit is contained in:
parent
7a2f340c22
commit
725c8aa9b7
1 changed files with 4 additions and 3 deletions
|
|
@ -356,9 +356,10 @@ class KSPlayerView: UIView {
|
|||
options.registerRemoteControll = false
|
||||
|
||||
// PERFORMANCE OPTIMIZATION: Optimal buffer durations for high bitrate
|
||||
// Increased buffer prevents stuttering during network hiccups with high bitrate streams
|
||||
options.preferredForwardBufferDuration = 3.0 // Increased from 0.5 for high bitrate stability
|
||||
options.maxBufferDuration = 20.0 // Increased from 10.0 to allow more aggressive buffering
|
||||
// preferredForwardBufferDuration = 1.0s: Kept low to ensure instant start.
|
||||
options.preferredForwardBufferDuration = 1.0
|
||||
// maxBufferDuration = 60.0s: Increased to allow the player to cache more content ahead of time
|
||||
options.maxBufferDuration = 60.0
|
||||
|
||||
// Enable "second open" to relax startup/seek buffering thresholds (already enabled)
|
||||
options.isSecondOpen = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue