Use ESM version of hls.js (#16655)

This commit is contained in:
Bram Kragten
2023-05-29 20:38:21 +02:00
committed by GitHub
parent 98d22d38c3
commit 38cf774a0d

View File

@@ -109,8 +109,7 @@ class HaHLSPlayer extends LitElement {
private async _startHls(): Promise<void> {
const masterPlaylistPromise = fetch(this.url);
const Hls: typeof HlsType = (await import("hls.js/dist/hls.light.min"))
.default;
const Hls: typeof HlsType = (await import("hls.js/dist/hls.light")).default;
if (!this.isConnected) {
return;