From 9e88a60734a53a6a2ce55fc174e2f2fd8e073eaa Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 26 Jan 2024 05:11:13 +0100 Subject: jvtt works in player --- web/script/player/mod.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web/script/player/mod.ts') diff --git a/web/script/player/mod.ts b/web/script/player/mod.ts index fb075d7..ca28e1c 100644 --- a/web/script/player/mod.ts +++ b/web/script/player/mod.ts @@ -12,6 +12,7 @@ import { TrackKind, get_track_kind } from "./mediacaps.ts"; import { Player } from "./player.ts"; import { Popup } from "./popup.ts"; import { Playersync } from "./sync.ts" +import { MSEPlayerTrack } from "./track.ts"; globalThis.addEventListener("DOMContentLoaded", () => { if (document.body.classList.contains("player")) { @@ -186,9 +187,9 @@ function initialize_player(el: HTMLElement, node_id: string) { show_stats.map(do_show => e("div", player.active_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")}`)), - ...tracks.map((t, i) => t.profile.map(p => + ...tracks.map((t, i) => t instanceof MSEPlayerTrack ? t.profile.map(p => e("pre", `track ${i}: ` + (p ? `profile ${p.id} (${show_profile(p)})` : `remux`)) - )) + ) : "") ) ))), logger.element, -- cgit v1.2.3-70-g09d2