diff options
author | metamuffin <metamuffin@disroot.org> | 2023-10-24 12:31:04 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-10-24 12:31:04 +0200 |
commit | 784530b4793f30683a078ed6cd75be2a6b18a0ad (patch) | |
tree | 54360e13bff83b229423a938260922b287acd0f8 /web/script | |
parent | 516afa2a65496f94654b96a7fa975bb544d38313 (diff) | |
download | jellything-784530b4793f30683a078ed6cd75be2a6b18a0ad.tar jellything-784530b4793f30683a078ed6cd75be2a6b18a0ad.tar.bz2 jellything-784530b4793f30683a078ed6cd75be2a6b18a0ad.tar.zst |
small adjustments that didnt fix the problem :)
Diffstat (limited to 'web/script')
-rw-r--r-- | web/script/player/player.ts | 2 | ||||
-rw-r--r-- | web/script/player/track.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/script/player/player.ts b/web/script/player/player.ts index acf2a19..8425279 100644 --- a/web/script/player/player.ts +++ b/web/script/player/player.ts @@ -74,7 +74,7 @@ export class Player { } async fetch_meta() { - this.set_pers("Fetching initial segments...") + this.set_pers("Loading media manifest...") const res = await fetch(`/n/${encodeURIComponent(this.node_id)}/stream?format=jhls`) if (!res.ok) return this.error.value = "Cannot download JHLS metadata" const metadata = await res.json() as JhlsMetadata diff --git a/web/script/player/track.ts b/web/script/player/track.ts index 4173b12..3f1e073 100644 --- a/web/script/player/track.ts +++ b/web/script/player/track.ts @@ -82,7 +82,7 @@ export class PlayerTrack { async load(index: number) { this.loading.add(index) 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 url = `/n/${encodeURIComponent(this.node_id)}/stream?format=hlsseg&webm=true&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 => { this.append_queue.push({ buf, ...this.metadata.segments[index], index, cb }) |