From af39f390c335327297bcd83c303522d750c2bf62 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 27 Oct 2023 15:19:02 +0200 Subject: filter transcoding profiles by support --- web/script/player/player.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'web/script/player/player.ts') 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])) -- cgit v1.2.3-70-g09d2