mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-22 14:38:06 +02:00
perf(player): optimize desktop players for micro-cuts and stability
This commit is contained in:
1 parent
2ef1db8a68
commit
b8922a2f08
2 files changed
+10
-10
No files matched your search
+5
-5
@@ -255,14 +255,14 @@
|
|||||||
const hls = new Hls({
|
const hls = new Hls({
|
||||||
maxBufferLength: 120,
|
maxBufferLength: 120,
|
||||||
enableWorker: true,
|
enableWorker: true,
|
||||||
liveSyncDurationCount: 3, // Reduced for faster initial sync
|
liveSyncDurationCount: 6, // Slightly more buffer for micro-cut protection
|
||||||
nudgeOffset: 0.4,
|
nudgeOffset: 0.6, // More aggressive jump over corrupted frames
|
||||||
nudgeMaxRetries: 15,
|
nudgeMaxRetries: 25,
|
||||||
maxLiveSyncPlaybackRate: 1.15,
|
maxLiveSyncPlaybackRate: 1.15,
|
||||||
// Turbo-Start specific
|
// Turbo-Start specific
|
||||||
startLevel: 0, // Force lowest level for instant start
|
startLevel: 0,
|
||||||
initialLiveManifestSize: 1,
|
initialLiveManifestSize: 1,
|
||||||
abrEwmaDefaultEstimate: 500000,
|
abrEwmaDefaultEstimate: 700000,
|
||||||
manifestLoadingRetryDelay: 500,
|
manifestLoadingRetryDelay: 500,
|
||||||
levelLoadingRetryDelay: 500
|
levelLoadingRetryDelay: 500
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -248,17 +248,17 @@
|
|||||||
maxBufferLength: 120, // Doubled for stability
|
maxBufferLength: 120, // Doubled for stability
|
||||||
maxMaxBufferLength: 240,
|
maxMaxBufferLength: 240,
|
||||||
enableWorker: true,
|
enableWorker: true,
|
||||||
liveSyncDurationCount: 3, // Reduced for faster initial sync
|
liveSyncDurationCount: 6, // Slightly more buffer for micro-cut protection
|
||||||
liveMaxLatencyDurationCount: 40,
|
liveMaxLatencyDurationCount: 40,
|
||||||
lowLatencyMode: false, // Disabled for better stability on laggy connections
|
lowLatencyMode: false, // Disabled for better stability on laggy connections
|
||||||
// Robustness features
|
// Robustness features
|
||||||
nudgeOffset: 0.5, // Jump over discontinuities more aggressively
|
nudgeOffset: 0.6, // More aggressive jump over corrupted frames
|
||||||
nudgeMaxRetries: 20,
|
nudgeMaxRetries: 25,
|
||||||
maxLiveSyncPlaybackRate: 1.2, // Smooth catch-up
|
maxLiveSyncPlaybackRate: 1.2, // Smooth catch-up
|
||||||
// Turbo-Start specific
|
// Turbo-Start specific
|
||||||
startLevel: 0, // Force lowest level for instant start
|
startLevel: 0,
|
||||||
initialLiveManifestSize: 1,
|
initialLiveManifestSize: 1,
|
||||||
abrEwmaDefaultEstimate: 500000,
|
abrEwmaDefaultEstimate: 700000,
|
||||||
manifestLoadingRetryDelay: 500,
|
manifestLoadingRetryDelay: 500,
|
||||||
levelLoadingRetryDelay: 500
|
levelLoadingRetryDelay: 500
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user