feat 优化ts分片加载最多重试

This commit is contained in:
Ironsp
2026-06-26 14:59:03 +08:00
parent 6e15e28f38
commit a860697ba2

View File

@@ -24,7 +24,7 @@ export const initHls = (monitorVideoUrl, monitorVideoRef) => {
manifestLoadingMaxRetry: 5, // m3u8 加载最多重试20次
manifestLoadingRetryDelay: 500, // 每次重试间隔500ms
manifestLoadingTimeOut: 5000, // m3u8 请求超时5秒
levelLoadingMaxRetry: 20, // ts 分片加载最多重试20次
levelLoadingMaxRetry: 2, // ts 分片加载最多重试20次
levelLoadingRetryDelay: 500,
lowLatencyMode: false, // 关掉低延迟模式,更稳定
startLevel: -1 // 自动选择码率