This commit is contained in:
awe
2025-11-21 16:31:38 +03:00
parent 49a54616b9
commit eeec3582c9
2 changed files with 12 additions and 8 deletions

View File

@ -367,13 +367,14 @@
if (Hls.isSupported()) {
hls = new Hls({
// Low latency configuration
// Low latency configuration with increased buffer
lowLatencyMode: true,
backBufferLength: 90,
maxBufferLength: 3,
maxBufferSize: 1 * 1024 * 1024, // 1MB
liveSyncDurationCount: 1,
liveMaxLatencyDurationCount: 2,
maxBufferLength: 10, // Increased from 3 to 10 seconds
maxBufferSize: 3 * 1024 * 1024, // Increased from 1MB to 3MB
liveSyncDurationCount: 3, // Keep 3 segments in sync
liveMaxLatencyDurationCount: 5, // Max 5 segments latency before catchup
maxMaxBufferLength: 30, // Maximum buffer length
enableWorker: true,
debug: false
});