Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add player mode to player stats

Chocobozzza45050e09edf
diff --git a/client/src/assets/player/stats/stats-card.ts b/client/src/assets/player/stats/stats-card.ts
index f66766089e..2916310884 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 81b6e33888..b26e92d93d 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)