aboutsummaryrefslogtreecommitdiff
path: root/web/script/player
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-05-14 01:17:41 +0200
committermetamuffin <metamuffin@disroot.org>2024-05-14 01:17:41 +0200
commitd7636b4707f09862577515c87007f3ac0b705ed8 (patch)
treea280e08cc8747cee5abde103fb37b712c2d8456b /web/script/player
parent1ea1c6fda12c7a49c5bb17ed5432967cddb1fd64 (diff)
downloadjellything-d7636b4707f09862577515c87007f3ac0b705ed8.tar
jellything-d7636b4707f09862577515c87007f3ac0b705ed8.tar.bz2
jellything-d7636b4707f09862577515c87007f3ac0b705ed8.tar.zst
jsp: show video res
Diffstat (limited to 'web/script/player')
-rw-r--r--web/script/player/mod.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/script/player/mod.ts b/web/script/player/mod.ts
index 671631a..c0c0a3a 100644
--- a/web/script/player/mod.ts
+++ b/web/script/player/mod.ts
@@ -221,6 +221,9 @@ function initialize_player(el: HTMLElement, node_id: string) {
player.downloader.bandwidth_used.map(b => e("pre", `estimated used bandwidth: ${show.metric(b, "B/s")} | ${show.metric(b * 8, "b/s")}`)),
player.downloader.total_downloaded.map(b => e("pre", `downloaded bytes total: ${show.metric(b, "B")}`)),
player.position.map(_ => e("pre", `frames dropped: ${player.video.getVideoPlaybackQuality().droppedVideoFrames}`)),
+ OVar.interval(() => e("pre", ""
+ + `video resolution: source: ${player.video.videoWidth}x${player.video.videoHeight}\n`
+ + ` display: ${player.video.clientWidth}x${player.video.clientHeight}`), 100),
...tracks.map(t => t.debug())
)
))),