diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-16 14:48:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-16 14:48:11 +0200 |
commit | 37229de26e0979733d197b10811db17fab31abcc (patch) | |
tree | 98b078228726c802fb41c98f2493752dba595790 /client/src | |
parent | 88ee99164c69ebd8d6a78913325e50dec0100e68 (diff) | |
download | PeerTube-37229de26e0979733d197b10811db17fab31abcc.tar.gz PeerTube-37229de26e0979733d197b10811db17fab31abcc.tar.zst PeerTube-37229de26e0979733d197b10811db17fab31abcc.zip |
Fix "undefined" resolution in player stats
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/assets/player/shared/stats/stats-card.ts | 5 |
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 |