From 05e9528c3111cfd4625ef6c886011efe50c7ffda Mon Sep 17 00:00:00 2001 From: LIU ZHAOYU Date: Mon, 9 Sep 2024 15:31:05 +0900 Subject: [PATCH] ensure fragment start before synchronize to live edge --- src/controller/stream-controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controller/stream-controller.ts b/src/controller/stream-controller.ts index d2f5bc2a700..a1d1581a6fe 100644 --- a/src/controller/stream-controller.ts +++ b/src/controller/stream-controller.ts @@ -681,7 +681,8 @@ export default class StreamController if (!this.startFragRequested) { this.setStartPosition(newDetails, sliding); - } else if (newDetails.live) { + } else if (newDetails.live && newDetails.PTSKnown) { + // Ensure Fragments have correct starts this.synchronizeToLiveEdge(newDetails); }