diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-28 09:07:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-28 09:07:57 +0200 |
commit | a45050e09edf6e2d74b6db48196f44ef9ce8fa58 (patch) | |
tree | 13d173dfb37e8a4a4f5232c6893b1051d644c00e | |
parent | 6b4e74c2b7e5bbfc4abf1cd9b67b2067fc93d09f (diff) | |
download | PeerTube-a45050e09edf6e2d74b6db48196f44ef9ce8fa58.tar.gz PeerTube-a45050e09edf6e2d74b6db48196f44ef9ce8fa58.tar.zst PeerTube-a45050e09edf6e2d74b6db48196f44ef9ce8fa58.zip |
Add player mode to player stats
-rw-r--r-- | client/src/assets/player/stats/stats-card.ts | 2 | ||||
-rwxr-xr-x | scripts/i18n/create-custom-files.ts | 3 |
2 files changed, 4 insertions, 1 deletions
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 { | |||
212 | : undefined | 212 | : undefined |
213 | 213 | ||
214 | return ` | 214 | return ` |
215 | ${this.buildElement(player.localize('Player mode'), this.options_.mode)} | ||
216 | |||
215 | ${this.buildElement(player.localize('Video UUID'), this.options_.videoUUID)} | 217 | ${this.buildElement(player.localize('Video UUID'), this.options_.videoUUID)} |
216 | 218 | ||
217 | ${this.buildElement(player.localize('Viewport / Frames'), frames)} | 219 | ${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 = { | |||
50 | 'Download Breakdown': 'Download Breakdown', | 50 | 'Download Breakdown': 'Download Breakdown', |
51 | 'Buffer Progress': 'Buffer Progress', | 51 | 'Buffer Progress': 'Buffer Progress', |
52 | 'Buffer State': 'Buffer State', | 52 | 'Buffer State': 'Buffer State', |
53 | 'Live Latency': 'Live Latency' | 53 | 'Live Latency': 'Live Latency', |
54 | 'Player mode': 'Player mode' | ||
54 | } | 55 | } |
55 | Object.assign(playerKeys, videojs) | 56 | Object.assign(playerKeys, videojs) |
56 | 57 | ||