diff options
Diffstat (limited to 'web/script/player/player.ts')
-rw-r--r-- | web/script/player/player.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/script/player/player.ts b/web/script/player/player.ts index 696fab2..cc778f0 100644 --- a/web/script/player/player.ts +++ b/web/script/player/player.ts @@ -80,10 +80,12 @@ export class Player { const metadata = await res.json() as JhlsMetadata this.set_pers() + this.profile_selector = new ProfileSelector(this, this.downloader.bandwidth, metadata) + this.set_pers("Checking codec support...") + await this.profile_selector.init() + this.duration.value = metadata.duration this.video.src = URL.createObjectURL(this.media_source) - this.profile_selector = new ProfileSelector(this, this.downloader.bandwidth, metadata) - this.media_source.addEventListener("sourceopen", async () => { this.set_pers("Initializing Media Extensions...") this.tracks.value.push(await PlayerTrack.new(this, this.node_id, 0, metadata.tracks[0])) |