From 7f195f3fc10e0d06cef8dfa4cb5060685f10fe2f Mon Sep 17 00:00:00 2001 From: Ironsp <1522278303@qq.com> Date: Wed, 5 Aug 2026 11:05:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=9B=B4=E6=92=AD=E6=B5=81=E8=BF=BD?= =?UTF-8?q?=E8=B5=B6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/video.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/video.ts b/src/utils/video.ts index e6393b0..73efb07 100644 --- a/src/utils/video.ts +++ b/src/utils/video.ts @@ -33,13 +33,13 @@ function startLiveSync(state: HlsPlayerState) { const currentTime = video.currentTime; const gap = liveEdge - currentTime; // 超过 6 秒就 seek 到 live edge 附近 - if (gap > 6) { + if (gap > 300) { video.currentTime = liveEdge - 2; } } catch { // ignore } - }, 2000); + }, 60 * 1000); } function stopLiveSync(state: HlsPlayerState) {