aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/script/player/player.ts2
-rw-r--r--web/script/player/track.ts2
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 })