mirror of https://github.com/Chocobozzz/PeerTube
Fix "undefined" resolution in player stats
parent
88ee99164c
commit
37229de26e
|
@ -145,7 +145,10 @@ class StatsCard extends Component {
|
|||
? `${level?.videoCodec || ''} / ${level?.audioCodec || ''}`
|
||||
: undefined
|
||||
|
||||
const resolution = `${level?.height}p${level?.attrs['FRAME-RATE'] || ''}`
|
||||
const resolution = level?.height
|
||||
? `${level?.height}p${level?.attrs['FRAME-RATE'] || ''}`
|
||||
: undefined
|
||||
|
||||
const buffer = this.timeRangesToString(this.player().buffered())
|
||||
|
||||
let progress: number
|
||||
|
|
Loading…
Reference in New Issue