Skip to content

Commit

Permalink
fix: Do not call load after mediachange for hls playlist loader (#1447)
Browse files Browse the repository at this point in the history
* 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 de6ff40.

---------

Co-authored-by: Dzianis Dashkevich <ddashkevich@brightcove.com>
  • Loading branch information
dzianis-dashkevich and Dzianis Dashkevich committed Nov 27, 2023
1 parent f294133 commit 28413f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/playlist-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28413f8

Please sign in to comment.