fix: remove unused hls params

This commit is contained in:
senshinya
2025-06-23 10:51:22 +08:00
committed by GitHub
parent 4386d176e6
commit 157297c05d

View File

@@ -463,14 +463,6 @@ function PlayPageClient() {
maxBufferLength: 30, // 前向缓冲最大 30s过大容易导致高延迟
backBufferLength: 30, // 仅保留 30s 已播放内容,避免内存占用
maxBufferSize: 60 * 1000 * 1000, // 约 60MB超出后触发清理
/* Live 同步及追帧 */
liveSyncDuration: 3, // 播放点保持在直播边缘 3s
liveMaxLatencyDuration: 10, // 超过 10s 向前跳
maxLiveSyncPlaybackRate: 1.5, // 延迟过高时 1.5x 加速追帧
/* 码率自适应优化 */
capLevelToPlayerSize: true, // 根据视频窗口大小限制清晰度,减少带宽消耗
});
hls.loadSource(url);