From a45050e09edf6e2d74b6db48196f44ef9ce8fa58 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 28 Apr 2021 09:07:57 +0200 Subject: Add player mode to player stats --- client/src/assets/player/stats/stats-card.ts | 2 ++ scripts/i18n/create-custom-files.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/assets/player/stats/stats-card.ts b/client/src/assets/player/stats/stats-card.ts index f66766089..291631088 100644 --- a/client/src/assets/player/stats/stats-card.ts +++ b/client/src/assets/player/stats/stats-card.ts @@ -212,6 +212,8 @@ class StatsCard extends Component { : undefined return ` + ${this.buildElement(player.localize('Player mode'), this.options_.mode)} + ${this.buildElement(player.localize('Video UUID'), this.options_.videoUUID)} ${this.buildElement(player.localize('Viewport / Frames'), frames)} diff --git a/scripts/i18n/create-custom-files.ts b/scripts/i18n/create-custom-files.ts index 81b6e3388..b26e92d93 100755 --- a/scripts/i18n/create-custom-files.ts +++ b/scripts/i18n/create-custom-files.ts @@ -50,7 +50,8 @@ const playerKeys = { 'Download Breakdown': 'Download Breakdown', 'Buffer Progress': 'Buffer Progress', 'Buffer State': 'Buffer State', - 'Live Latency': 'Live Latency' + 'Live Latency': 'Live Latency', + 'Player mode': 'Player mode' } Object.assign(playerKeys, videojs) -- cgit v1.2.3