类型:开发

描述:
This commit is contained in:
2025-04-15 09:40:00 +08:00
parent 612f67869b
commit 44e612361c
3 changed files with 12 additions and 14 deletions

View File

@@ -164,12 +164,12 @@
this.hls = new Hls({
// 内存优化配置
maxBufferSize: 15 * 1000 * 1000, // 降低缓冲区大小15MB
maxBufferLength: 50, // 更小的缓冲窗口
maxBufferSize: 0, // 降低缓冲区大小15MB
maxBufferLength: 0.1, // 更小的缓冲窗口
liveSyncDuration: 1, // 紧跟直播点
liveMaxLatencyDuration: 5, // 最大延迟5秒
liveDurationInfinity: true,
lowLatencyMode: false, // 启用低延迟模式
lowLatencyMode: true, // 启用低延迟模式
maxMaxBufferLength: 60,
backBufferLength: 1, // 减少保留的缓冲数据
manifestLoadingTimeOut: 10000,
@@ -198,7 +198,6 @@
this.retryCount = 0
this.safePlay()
})
this.hls.on(Hls.Events.ERROR, (event, data) => {
this.handleHlsError(data)
})