mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-18 12:49:54 +02:00
perf(player): implement Turbo Start for faster zapping while maintaining stability
This commit is contained in:
1 parent
9e97f45046
commit
79fae261aa
3 files changed
+18
-17
No files matched your search
@@ -248,7 +248,7 @@
|
||||
maxBufferLength: 120, // Doubled for stability
|
||||
maxMaxBufferLength: 240,
|
||||
enableWorker: true,
|
||||
liveSyncDurationCount: 12, // Increased distance from live edge (TiviMate style) for high latency
|
||||
liveSyncDurationCount: 3, // Reduced for faster initial sync
|
||||
liveMaxLatencyDurationCount: 40,
|
||||
lowLatencyMode: false, // Disabled for better stability on laggy connections
|
||||
// Robustness features
|
||||
@@ -256,11 +256,11 @@
|
||||
nudgeMaxRetries: 20,
|
||||
maxLiveSyncPlaybackRate: 1.2, // Smooth catch-up
|
||||
// Turbo-Start specific
|
||||
startLevel: isTurbo ? 0 : -1,
|
||||
startLevel: 0, // Force lowest level for instant start
|
||||
initialLiveManifestSize: 1,
|
||||
abrEwmaDefaultEstimate: 500000,
|
||||
manifestLoadingRetryDelay: 1000,
|
||||
levelLoadingRetryDelay: 1000
|
||||
manifestLoadingRetryDelay: 500,
|
||||
levelLoadingRetryDelay: 500
|
||||
});
|
||||
|
||||
window.hlsInstance = hls;
|
||||
@@ -296,7 +296,7 @@
|
||||
url: url
|
||||
}, {
|
||||
enableWorker: true,
|
||||
stashInitialSize: 512 * 1024,
|
||||
stashInitialSize: 64 * 1024, // Turbo Start: 64KB initial buffer
|
||||
enableStashBuffer: true,
|
||||
liveBufferLatencyChasing: true,
|
||||
liveBufferLatencyChasingOnPaused: true,
|
||||
|
||||
Reference in new issue
Block a user