force ciderhls to load lowest quality artwork

This commit is contained in:
vapormusic 2021-12-25 11:05:17 +07:00
parent 3c92dc5e83
commit bd66494f9b
2 changed files with 6 additions and 2 deletions

View file

@ -19209,7 +19209,11 @@ typeof window !== "undefined" &&
} }
} }
} }
if (levels && levels.length > 0) {
levels = levels.sort(function (a, b) {
return a.bitrate - b.bitrate;
});
}
return { return {
levels: levels, levels: levels,
sessionData: hasSessionData ? sessionData : null sessionData: hasSessionData ? sessionData : null

View file

@ -43,7 +43,7 @@
} }
this.hls.attachMedia(this.$refs.video); this.hls.attachMedia(this.$refs.video);
this.hls.loadSource(this.video); this.hls.loadSource(this.video);
this.hls.loadLevel = 4; this.hls.loadLevel = 0;
} }
}) })
} }