aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/stats
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-14 14:07:16 +0200
committerChocobozzz <me@florianbigard.com>2021-05-14 14:07:16 +0200
commitdb0159c7f20633f9b472b77f5798849fdbdbe4b8 (patch)
tree1ce4b831b224ae46b931389fadfb4c50035211c6 /client/src/assets/player/stats
parentbc529ef7f0e18bef4cb43c0f2345e8fd1c0075ff (diff)
downloadPeerTube-db0159c7f20633f9b472b77f5798849fdbdbe4b8.tar.gz
PeerTube-db0159c7f20633f9b472b77f5798849fdbdbe4b8.tar.zst
PeerTube-db0159c7f20633f9b472b77f5798849fdbdbe4b8.zip
Fix "stats for nerds" card in HTTP mode
Diffstat (limited to 'client/src/assets/player/stats')
-rw-r--r--client/src/assets/player/stats/stats-card.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/assets/player/stats/stats-card.ts b/client/src/assets/player/stats/stats-card.ts
index d9f0d2fe9..a93f59506 100644
--- a/client/src/assets/player/stats/stats-card.ts
+++ b/client/src/assets/player/stats/stats-card.ts
@@ -89,9 +89,9 @@ class StatsCard extends Component {
89 this.container.style.display = 'block' 89 this.container.style.display = 'block'
90 this.updateInterval = setInterval(async () => { 90 this.updateInterval = setInterval(async () => {
91 try { 91 try {
92 const options = this.mode === 'webtorrent' 92 const options = this.mode === 'p2p-media-loader'
93 ? await this.buildWebTorrentOptions() 93 ? await this.buildHLSOptions()
94 : await this.buildHLSOptions() 94 : await this.buildWebTorrentOptions() // Default
95 95
96 this.list.innerHTML = this.getListTemplate(options) 96 this.list.innerHTML = this.getListTemplate(options)
97 } catch (err) { 97 } catch (err) {
@@ -212,7 +212,7 @@ class StatsCard extends Component {
212 : undefined 212 : undefined
213 213
214 return ` 214 return `
215 ${this.buildElement(player.localize('Player mode'), this.options_.mode)} 215 ${this.buildElement(player.localize('Player mode'), this.mode || 'HTTP')}
216 216
217 ${this.buildElement(player.localize('Video UUID'), this.options_.videoUUID)} 217 ${this.buildElement(player.localize('Video UUID'), this.options_.videoUUID)}
218 218