mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-20 05:28:05 +02:00
chore: optimize IPTV performance and fix navigation Loop
- Revert aggressive caching in XtreamService (use forceCache + 1h stale) - Adjust HLS.js buffers (60s-120s) for stream stability - Fix desktop navigation loop in PlaylistSelectionScreen - Fix receive timeouts (revert to 30s/60s)
This commit is contained in:
1 parent
8c65e48bbe
commit
736ab0f51c
3 files changed
+14
-14
No files matched your search
@@ -243,11 +243,11 @@
|
||||
}
|
||||
|
||||
const hls = new Hls({
|
||||
maxBufferLength: 30, // 30s is plenty for desktop stability
|
||||
maxMaxBufferLength: 60,
|
||||
maxBufferLength: 60, // Increased for better stability
|
||||
maxMaxBufferLength: 120,
|
||||
enableWorker: true,
|
||||
liveSyncDurationCount: 3,
|
||||
liveMaxLatencyDurationCount: 10,
|
||||
liveSyncDurationCount: 5, // More stable sync
|
||||
liveMaxLatencyDurationCount: 15,
|
||||
lowLatencyMode: true
|
||||
});
|
||||
|
||||
|
||||
@@ -229,12 +229,12 @@
|
||||
if (isHLS && Hls.isSupported()) {
|
||||
log('Using Hls.js optimized for mobile');
|
||||
const hls = new Hls({
|
||||
maxBufferLength: 30,
|
||||
maxMaxBufferLength: 60,
|
||||
liveSyncDurationCount: 3,
|
||||
liveMaxLatencyDurationCount: 10,
|
||||
maxBufferLength: 60, // More buffer for mobile stability
|
||||
maxMaxBufferLength: 120,
|
||||
liveSyncDurationCount: 5,
|
||||
liveMaxLatencyDurationCount: 15,
|
||||
enableWorker: true,
|
||||
lowLatencyMode: true
|
||||
lowLatencyMode: false // Disable low latency for continuity
|
||||
});
|
||||
hls.loadSource(streamUrl);
|
||||
hls.attachMedia(video);
|
||||
|
||||
Reference in new issue
Block a user