类型:开发
描述:
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user