From 899eb0725f842df21f927a8c63a02e40986bd7fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Fri, 18 Aug 2023 14:43:18 +0200 Subject: [PATCH] fix: Fix playRangeEnd does not work with HLS streams (#5494) Fixes https://github.com/shaka-project/shaka-player/issues/5471 --- lib/player.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/player.js b/lib/player.js index b9bc928568..808868eab2 100644 --- a/lib/player.js +++ b/lib/player.js @@ -2192,6 +2192,10 @@ shaka.Player = class extends shaka.util.FakeEventTarget { await Promise.all(createSegmentIndexPromises); } + shaka.Player.applyPlayRange_(this.manifest_.presentationTimeline, + this.config_.playRangeStart, + this.config_.playRangeEnd); + this.playhead_ = this.createPlayhead(has.startTime); this.playheadObservers_ = this.createPlayheadObserversForMSE_(has.startTimeOfLoad);