diff options
author | metamuffin <metamuffin@disroot.org> | 2023-10-23 21:41:57 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-10-23 21:41:57 +0200 |
commit | e7096a499a6e2a8a05f0991898f75da9c928dd70 (patch) | |
tree | cb2428b9e2619961273b19e66b8f2c3e1bdfbc8d /web/script/player/track.ts | |
parent | 13a6887415547f5e3bafec80d5088ff90ae94aa6 (diff) | |
download | jellything-e7096a499a6e2a8a05f0991898f75da9c928dd70.tar jellything-e7096a499a6e2a8a05f0991898f75da9c928dd70.tar.bz2 jellything-e7096a499a6e2a8a05f0991898f75da9c928dd70.tar.zst |
player: do actual cap check to see if transcode is required
Diffstat (limited to 'web/script/player/track.ts')
-rw-r--r-- | web/script/player/track.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/script/player/track.ts b/web/script/player/track.ts index e2d9d85..4173b12 100644 --- a/web/script/player/track.ts +++ b/web/script/player/track.ts @@ -81,7 +81,7 @@ export class PlayerTrack { async load(index: number) { this.loading.add(index) - this.player.profile_selector.select_optimal_profile(this.track_index, this.profile) + await this.player.profile_selector.select_optimal_profile(this.track_index, this.profile) const url = `/n/${encodeURIComponent(this.node_id)}/stream?format=hlsseg&tracks=${this.track_index}&index=${index}${this.profile.value ? `&profile=${this.profile.value.id}` : ""}`; const buf = await this.player.downloader.download(url) await new Promise<void>(cb => { |