aboutsummaryrefslogtreecommitdiff
path: root/web/script/player/mod.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-10-03 12:09:36 +0200
committermetamuffin <metamuffin@disroot.org>2023-10-03 12:09:36 +0200
commit9f97111e2f2b89fa5fcb2ff0dd69a62e31ea381f (patch)
tree864fa80f7df774d84496c2b10a3bcffe43f1e15b /web/script/player/mod.ts
parentfffc7a3b8a8a3ead3992d400ec9ed035f1f93b39 (diff)
downloadjellything-9f97111e2f2b89fa5fcb2ff0dd69a62e31ea381f.tar
jellything-9f97111e2f2b89fa5fcb2ff0dd69a62e31ea381f.tar.bz2
jellything-9f97111e2f2b89fa5fcb2ff0dd69a62e31ea381f.tar.zst
debugging unreliable appendBuffer
Diffstat (limited to 'web/script/player/mod.ts')
-rw-r--r--web/script/player/mod.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/script/player/mod.ts b/web/script/player/mod.ts
index e6d3ea0..aea12a8 100644
--- a/web/script/player/mod.ts
+++ b/web/script/player/mod.ts
@@ -69,7 +69,7 @@ function initialize_player(el: HTMLElement, node_id: string) {
)),
show_stats.map(do_show => player.tracks.map(tracks =>
!do_show ? e("div") : e("div", { class: "jsp-stats" },
- player.downloader.bandwidth.map(b => e("pre", `estimated bandwidth: ${show.metric(b, "B/s")} / ${show.metric(b * 8, "b/s")}`)),
+ player.downloader.bandwidth.map(b => e("pre", `estimated bandwidth: ${show.metric(b, "B/s")} | ${show.metric(b * 8, "b/s")}`)),
...tracks.map((t, i) => t.profile.map(p =>
e("pre", `track ${i}: ` + (p ? `profile ${p.id} (${show_profile(p)})` : `remux`))
))
@@ -122,8 +122,8 @@ function mouse_idle(e: HTMLElement, timeout: number, cb: (b: boolean) => unknown
}
function show_profile(profile: EncodingProfile): string {
- if (profile.audio) return `codec=${profile.audio.codec} ${profile.audio.sample_rate ? `ar=${show.metric(profile.audio.sample_rate, "Hz")} ` : ""}abr=${show.metric(profile.audio.bitrate, "b/s")}`
- if (profile.video) return `codec=${profile.video.codec} vw=${profile.video.width} vbr=${show.metric(profile.video.bitrate, "b/s")} preset=${profile.video.preset}`
+ if (profile.audio) return `codec=${profile.audio.codec} br=${show.metric(profile.audio.bitrate, "b/s")}${profile.audio.sample_rate ? ` sr=${show.metric(profile.audio.sample_rate, "Hz")}` : ""}`
+ if (profile.video) return `codec=${profile.video.codec} br=${show.metric(profile.video.bitrate, "b/s")} w=${profile.video.width} preset=${profile.video.preset}`
if (profile.subtitles) return `codec=${profile.subtitles.codec}`
return `???`
}