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) {