diff options
author | metamuffin <metamuffin@disroot.org> | 2023-10-27 15:19:02 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-10-27 15:19:02 +0200 |
commit | af39f390c335327297bcd83c303522d750c2bf62 (patch) | |
tree | dda971bf7a1230782549ddecbb7e384539551f59 /web/script/player/player.ts | |
parent | 0ed5ae95283c4820a5bf165d0971ba021bed9320 (diff) | |
download | jellything-af39f390c335327297bcd83c303522d750c2bf62.tar jellything-af39f390c335327297bcd83c303522d750c2bf62.tar.bz2 jellything-af39f390c335327297bcd83c303522d750c2bf62.tar.zst |
filter transcoding profiles by support
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])) |