diff options
author | metamuffin <metamuffin@disroot.org> | 2023-10-27 14:47:15 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-10-27 14:47:15 +0200 |
commit | 0ed5ae95283c4820a5bf165d0971ba021bed9320 (patch) | |
tree | b2a57f5509148f388209ec3cdf835cee109be800 /web/script/player/player.ts | |
parent | f881372c0a024e534d87844040a0c8678a39d85d (diff) | |
download | jellything-0ed5ae95283c4820a5bf165d0971ba021bed9320.tar jellything-0ed5ae95283c4820a5bf165d0971ba021bed9320.tar.bz2 jellything-0ed5ae95283c4820a5bf165d0971ba021bed9320.tar.zst |
not hardcoding source source codecs
Diffstat (limited to 'web/script/player/player.ts')
-rw-r--r-- | web/script/player/player.ts | 5 |
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() |