Fix error when loading a new playlist (when fragments aren't yet loaded by hls.js)

pull/249/head
ElementalAlchemist 4 years ago
parent 96b7398fc2
commit 99c2ebc191

@ -89,7 +89,9 @@ window.addEventListener("DOMContentLoaded", async (event) => {
"Some ranges couldn't be updated for the new video time endpoints. Please verify the time range values." "Some ranges couldn't be updated for the new video time endpoints. Please verify the time range values."
); );
} }
rangeDataUpdated(); globalPlayer.once(Hls.Events.LEVEL_LOADED, (_data) => {
rangeDataUpdated();
});
const waveformImage = document.getElementById("waveform"); const waveformImage = document.getElementById("waveform");
if (newEnd === null) { if (newEnd === null) {

Loading…
Cancel
Save