From 5ad66ce75ddee63d5121ff1361fdc298e8d50900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=81lvaro=20Velad=20Galva=CC=81n?= Date: Thu, 4 Apr 2024 16:24:41 +0200 Subject: [PATCH 1/2] fix(DASH): Set delay to 0 for LL streams --- lib/dash/dash_parser.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/dash/dash_parser.js b/lib/dash/dash_parser.js index 70c712d950..50fbecaf09 100644 --- a/lib/dash/dash_parser.js +++ b/lib/dash/dash_parser.js @@ -648,6 +648,11 @@ shaka.dash.DashParser = class { // best latency if (this.lowLatencyMode_) { minBufferTime = 0; + const defaultPresentationDelay = + this.config_.defaultPresentationDelay || minBufferTime * 1.5; + const presentationDelay = suggestedPresentationDelay != null ? + suggestedPresentationDelay : defaultPresentationDelay; + presentationTimeline.setDelay(presentationDelay); } // These steps are not done on manifest update. From bd0652b047387a6c811ac20ba2b74e476893c2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=81lvaro=20Velad=20Galva=CC=81n?= Date: Fri, 5 Apr 2024 08:53:54 +0200 Subject: [PATCH 2/2] Update implementation --- lib/dash/dash_parser.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/dash/dash_parser.js b/lib/dash/dash_parser.js index 50fbecaf09..528049a0bb 100644 --- a/lib/dash/dash_parser.js +++ b/lib/dash/dash_parser.js @@ -648,10 +648,8 @@ shaka.dash.DashParser = class { // best latency if (this.lowLatencyMode_) { minBufferTime = 0; - const defaultPresentationDelay = - this.config_.defaultPresentationDelay || minBufferTime * 1.5; const presentationDelay = suggestedPresentationDelay != null ? - suggestedPresentationDelay : defaultPresentationDelay; + suggestedPresentationDelay : this.config_.defaultPresentationDelay; presentationTimeline.setDelay(presentationDelay); }