From 28413f81e25dd461e16f54734ad33f6444452c29 Mon Sep 17 00:00:00 2001 From: Dzianis Dashkevich <98566601+dzianis-dashkevich@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:11:02 -0500 Subject: [PATCH] fix: Do not call load after mediachange for hls playlist loader (#1447) * fix: do not call load after mediachange for hls playlist loader * chore: bump mux.js 7.0.1 to 7.0.2 * Revert "chore: bump mux.js 7.0.1 to 7.0.2" This reverts commit de6ff40f432db8650468459bc43abc3958bcafd2. --------- Co-authored-by: Dzianis Dashkevich --- src/playlist-controller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/playlist-controller.js b/src/playlist-controller.js index 3819ee946..623a2a3aa 100644 --- a/src/playlist-controller.js +++ b/src/playlist-controller.js @@ -673,7 +673,10 @@ export class PlaylistController extends videojs.EventTarget { this.requestOptions_.timeout = requestTimeout; } - this.mainPlaylistLoader_.load(); + if (this.sourceType_ === 'dash') { + // we don't want to re-request the same hls playlist right after it was changed + this.mainPlaylistLoader_.load(); + } // TODO: Create a new event on the PlaylistLoader that signals // that the segments have changed in some way and use that to