diff --git a/src/components/HlsPlayer/index.vue b/src/components/HlsPlayer/index.vue index 768a684..938b6b8 100644 --- a/src/components/HlsPlayer/index.vue +++ b/src/components/HlsPlayer/index.vue @@ -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) }) diff --git a/src/views/hotel/components/info-box.vue b/src/views/hotel/components/info-box.vue index 103f0d2..0a218c1 100644 --- a/src/views/hotel/components/info-box.vue +++ b/src/views/hotel/components/info-box.vue @@ -71,7 +71,7 @@