perf(player): optimize desktop players for micro-cuts and stability

This commit is contained in:
Michael committed 2026-03-10 22:02:13 +01:00
1 parent 2ef1db8a68
commit b8922a2f08
2 files changed
+10 -10

No files matched your search

+5 -5
View File
@@ -255,14 +255,14 @@
const hls = new Hls({
maxBufferLength: 120,
enableWorker: true,
liveSyncDurationCount: 3, // Reduced for faster initial sync
nudgeOffset: 0.4,
nudgeMaxRetries: 15,
liveSyncDurationCount: 6, // Slightly more buffer for micro-cut protection
nudgeOffset: 0.6, // More aggressive jump over corrupted frames
nudgeMaxRetries: 25,
maxLiveSyncPlaybackRate: 1.15,
// Turbo-Start specific
startLevel: 0, // Force lowest level for instant start
startLevel: 0,
initialLiveManifestSize: 1,
abrEwmaDefaultEstimate: 500000,
abrEwmaDefaultEstimate: 700000,
manifestLoadingRetryDelay: 500,
levelLoadingRetryDelay: 500
});
+5 -5
View File
@@ -248,17 +248,17 @@
maxBufferLength: 120, // Doubled for stability
maxMaxBufferLength: 240,
enableWorker: true,
liveSyncDurationCount: 3, // Reduced for faster initial sync
liveSyncDurationCount: 6, // Slightly more buffer for micro-cut protection
liveMaxLatencyDurationCount: 40,
lowLatencyMode: false, // Disabled for better stability on laggy connections
// Robustness features
nudgeOffset: 0.5, // Jump over discontinuities more aggressively
nudgeMaxRetries: 20,
nudgeOffset: 0.6, // More aggressive jump over corrupted frames
nudgeMaxRetries: 25,
maxLiveSyncPlaybackRate: 1.2, // Smooth catch-up
// Turbo-Start specific
startLevel: 0, // Force lowest level for instant start
startLevel: 0,
initialLiveManifestSize: 1,
abrEwmaDefaultEstimate: 500000,
abrEwmaDefaultEstimate: 700000,
manifestLoadingRetryDelay: 500,
levelLoadingRetryDelay: 500
});