aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/assets/player/shared/stats/stats-card.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/client/src/assets/player/shared/stats/stats-card.ts b/client/src/assets/player/shared/stats/stats-card.ts
index ed2910fa2..f23ae48be 100644
--- a/client/src/assets/player/shared/stats/stats-card.ts
+++ b/client/src/assets/player/shared/stats/stats-card.ts
@@ -260,12 +260,13 @@ class StatsCard extends Component {
260 const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0) 260 const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0)
261 const vh = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0) 261 const vh = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0)
262 const pr = (window.devicePixelRatio || 1).toFixed(2) 262 const pr = (window.devicePixelRatio || 1).toFixed(2)
263 const frames = `${vw}x${vh}*${pr} / ${videoQuality.droppedVideoFrames} dropped of ${videoQuality.totalVideoFrames}` 263 const vp = `${vw}x${vh}*${pr}`
264 264 const { droppedVideoFrames, totalVideoFrames } = videoQuality
265 const frames = player.localize('{1} / {2} dropped of {3}', [ vp, droppedVideoFrames + '', totalVideoFrames + '' ])
265 const duration = player.duration() 266 const duration = player.duration()
266 267
267 let volume = `${Math.round(player.volume() * 100)}` 268 let volume = `${Math.round(player.volume() * 100)}`
268 if (player.muted()) volume += ' (muted)' 269 if (player.muted()) volume += player.localize(' (muted)')
269 270
270 const networkActivity = playerNetworkInfo.downloadSpeed 271 const networkActivity = playerNetworkInfo.downloadSpeed
271 ? `${playerNetworkInfo.downloadSpeed} ⇓ / ${playerNetworkInfo.uploadSpeed} ⇑` 272 ? `${playerNetworkInfo.downloadSpeed} ⇓ / ${playerNetworkInfo.uploadSpeed} ⇑`
@@ -274,8 +275,9 @@ class StatsCard extends Component {
274 const totalTransferred = playerNetworkInfo.totalDownloaded 275 const totalTransferred = playerNetworkInfo.totalDownloaded
275 ? `${playerNetworkInfo.totalDownloaded} ⇓ / ${playerNetworkInfo.totalUploaded} ⇑` 276 ? `${playerNetworkInfo.totalDownloaded} ⇓ / ${playerNetworkInfo.totalUploaded} ⇑`
276 : undefined 277 : undefined
278 const { downloadedFromServer, downloadedFromPeers } = playerNetworkInfo
277 const downloadBreakdown = playerNetworkInfo.downloadedFromServer 279 const downloadBreakdown = playerNetworkInfo.downloadedFromServer
278 ? `${playerNetworkInfo.downloadedFromServer} from servers · ${playerNetworkInfo.downloadedFromPeers} from peers` 280 ? player.localize('{1} from servers · {2} from peers', [ downloadedFromServer, downloadedFromPeers ])
279 : undefined 281 : undefined
280 282
281 const bufferProgress = progress !== undefined 283 const bufferProgress = progress !== undefined