aboutsummaryrefslogtreecommitdiff
path: root/web/script/player/player.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/script/player/player.ts')
-rw-r--r--web/script/player/player.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/script/player/player.ts b/web/script/player/player.ts
index 8425279..696fab2 100644
--- a/web/script/player/player.ts
+++ b/web/script/player/player.ts
@@ -85,8 +85,9 @@ export class Player {
this.profile_selector = new ProfileSelector(this, this.downloader.bandwidth, metadata)
this.media_source.addEventListener("sourceopen", async () => {
- this.tracks.value.push(new PlayerTrack(this, this.node_id, 0, metadata.tracks[0]))
- this.tracks.value.push(new PlayerTrack(this, this.node_id, 1, metadata.tracks[1]))
+ this.set_pers("Initializing Media Extensions...")
+ this.tracks.value.push(await PlayerTrack.new(this, this.node_id, 0, metadata.tracks[0]))
+ this.tracks.value.push(await PlayerTrack.new(this, this.node_id, 1, metadata.tracks[1]))
this.tracks.change()
this.set_pers("Fetching initial segments...")
this.update()