Added two new HLS settings to help with audio issues on some streaming services

This commit is contained in:
Trevor Mears
2025-12-28 01:29:27 -08:00
parent 1a80b4c036
commit a7e0db7a4f
+3
View File
@@ -69,6 +69,9 @@ class VideoPlayer {
// Live stream settings - stay further from live edge for stability // Live stream settings - stay further from live edge for stability
liveSyncDurationCount: 3, // Stay 3 segments behind live liveSyncDurationCount: 3, // Stay 3 segments behind live
liveMaxLatencyDurationCount: 10, // Allow up to 10 segments behind before catching up liveMaxLatencyDurationCount: 10, // Allow up to 10 segments behind before catching up
// Handle audio discontinuities (fixes garbled audio during ad transitions)
stretchShortVideoTrack: true, // Stretch short segments to avoid gaps
forceKeyFrameOnDiscontinuity: true, // Force keyframe sync on discontinuity
// Faster recovery from errors // Faster recovery from errors
levelLoadingMaxRetry: 4, levelLoadingMaxRetry: 4,
manifestLoadingMaxRetry: 4, manifestLoadingMaxRetry: 4,