aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-16 14:48:11 +0200
committerChocobozzz <me@florianbigard.com>2022-08-16 14:48:11 +0200
commit37229de26e0979733d197b10811db17fab31abcc (patch)
tree98b078228726c802fb41c98f2493752dba595790 /client
parent88ee99164c69ebd8d6a78913325e50dec0100e68 (diff)
downloadPeerTube-37229de26e0979733d197b10811db17fab31abcc.tar.gz
PeerTube-37229de26e0979733d197b10811db17fab31abcc.tar.zst
PeerTube-37229de26e0979733d197b10811db17fab31abcc.zip
Fix "undefined" resolution in player stats
Diffstat (limited to 'client')
-rw-r--r--client/src/assets/player/shared/stats/stats-card.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/assets/player/shared/stats/stats-card.ts b/client/src/assets/player/shared/stats/stats-card.ts
index 1199d3285..830670271 100644
--- a/client/src/assets/player/shared/stats/stats-card.ts
+++ b/client/src/assets/player/shared/stats/stats-card.ts
@@ -145,7 +145,10 @@ class StatsCard extends Component {
145 ? `${level?.videoCodec || ''} / ${level?.audioCodec || ''}` 145 ? `${level?.videoCodec || ''} / ${level?.audioCodec || ''}`
146 : undefined 146 : undefined
147 147
148 const resolution = `${level?.height}p${level?.attrs['FRAME-RATE'] || ''}` 148 const resolution = level?.height
149 ? `${level?.height}p${level?.attrs['FRAME-RATE'] || ''}`
150 : undefined
151
149 const buffer = this.timeRangesToString(this.player().buffered()) 152 const buffer = this.timeRangesToString(this.player().buffered())
150 153
151 let progress: number 154 let progress: number