mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +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> {
|
private async _startHls(): Promise<void> {
|
||||||
const masterPlaylistPromise = fetch(this.url);
|
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) {
|
if (!this.isConnected) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user