fix: stabilize IPTV playback and implement request throttling

- Add playback lock to XtreamService to delay EPG during stream init
- Increase MPEG-TS stash buffer to 512KB for better stability
- Enable liveBufferLatencyChasing to prevent stream drift
- Tune HLS parameters for balanced speed and reliability
This commit is contained in:
Michael committed 2026-03-10 18:54:44 +01:00
1 parent 0ca6f96710
commit df4bcfd07f
5 files changed
+48 -22

No files matched your search

+4 -4
View File
@@ -253,15 +253,15 @@
const isTurbo = urlParams.get('turbo') === 'true';
const hls = new Hls({
maxBufferLength: isTurbo ? 30 : 45,
maxBufferLength: isTurbo ? 45 : 50,
enableWorker: true,
liveSyncDurationCount: isTurbo ? 2 : 4,
liveSyncDurationCount: isTurbo ? 3 : 4, // Improved stability
// Turbo-Start specific
startLevel: isTurbo ? 0 : -1,
initialLiveManifestSize: 1,
abrEwmaDefaultEstimate: 500000,
manifestLoadingRetryDelay: 500,
levelLoadingRetryDelay: 500
manifestLoadingRetryDelay: 800,
levelLoadingRetryDelay: 800
});
window.hlsInstance = hls;
hls.loadSource(url);