mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Use esm module for hls.js (#16878)
This commit is contained in:
parent
655b630fa5
commit
e3faa618bf
@ -109,7 +109,8 @@ 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")).default;
|
||||
const Hls: typeof HlsType = (await import("hls.js/dist/hls.light.mjs"))
|
||||
.default;
|
||||
|
||||
if (!this.isConnected) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user