Fix player metrics
This commit is contained in:
parent
6b745df087
commit
bfd01f289d
|
@ -144,6 +144,8 @@ class MetricsPlugin extends Plugin {
|
|||
|
||||
this.player.on('http-info', (_event, data: PlayerNetworkInfo) => {
|
||||
this.downloadedBytesHTTP += Math.round(data.http.downloaded - (this.lastPlayerNetworkInfo?.http.downloaded || 0))
|
||||
|
||||
this.lastPlayerNetworkInfo = data
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue