From 89a296cf6a5d3ed1ac2a18d996d16120b49a42d3 Mon Sep 17 00:00:00 2001 From: Bertrand Berthelot Date: Wed, 5 Jan 2022 13:17:12 +0100 Subject: [PATCH] Fix live seeking (#3837) --- src/streaming/controllers/BufferController.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/streaming/controllers/BufferController.js b/src/streaming/controllers/BufferController.js index 83e67c6945..26b5768805 100644 --- a/src/streaming/controllers/BufferController.js +++ b/src/streaming/controllers/BufferController.js @@ -354,12 +354,10 @@ function BufferController(config) { if (seekTarget <= range.end) { // Seek video element to seek target or range start if appended buffer starts after seek target (segments timeline/template tolerance) playbackController.seek(Math.max(seekTarget, range.start), false, true); - seekTarget = NaN; } } else if (currentTime < range.start) { // If appended buffer starts after seek target (segments timeline/template tolerance) then seek to range start playbackController.seek(range.start, false, true); - seekTarget = NaN; } }