From b1744e21345b095143c4b59a7daaa22e1d7c02fe Mon Sep 17 00:00:00 2001 From: dsilhavy Date: Thu, 14 Oct 2021 15:51:36 +0200 Subject: [PATCH] Fix seek with null value in PlaybackController.js (#3789) --- src/streaming/controllers/PlaybackController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/streaming/controllers/PlaybackController.js b/src/streaming/controllers/PlaybackController.js index 3433e9eec8..086c9cdd97 100644 --- a/src/streaming/controllers/PlaybackController.js +++ b/src/streaming/controllers/PlaybackController.js @@ -181,7 +181,9 @@ function PlaybackController() { const DVRMetrics = dashMetrics.getCurrentDVRInfo(type); const DVRWindow = DVRMetrics ? DVRMetrics.range : null; - seek(DVRWindow.end - mediaPlayerModel.getLiveDelay(), true, false); + if (DVRWindow && !isNaN(DVRWindow.end)) { + seek(DVRWindow.end - mediaPlayerModel.getLiveDelay(), true, false); + } } function getTime() {