diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-21 11:42:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-21 11:42:52 +0200 |
commit | c6867725fb8e3dfbc2018a37ed5a963103587cb6 (patch) | |
tree | 92e00e551c95553c6090e26a7502593e72bdcfd7 /client/src/assets/player/peertube-player.ts | |
parent | b63c607b92fd3ec62e370b73e398062bcf317738 (diff) | |
download | PeerTube-c6867725fb8e3dfbc2018a37ed5a963103587cb6.tar.gz PeerTube-c6867725fb8e3dfbc2018a37ed5a963103587cb6.tar.zst PeerTube-c6867725fb8e3dfbc2018a37ed5a963103587cb6.zip |
Add p2p info to metrics
Diffstat (limited to 'client/src/assets/player/peertube-player.ts')
-rw-r--r-- | client/src/assets/player/peertube-player.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts index ebb79247a..69ca1a566 100644 --- a/client/src/assets/player/peertube-player.ts +++ b/client/src/assets/player/peertube-player.ts | |||
@@ -203,7 +203,7 @@ export class PeerTubePlayer { | |||
203 | 203 | ||
204 | this.player.one('error', () => handleError()) | 204 | this.player.one('error', () => handleError()) |
205 | 205 | ||
206 | this.player.on('p2p-info', (_, data: PlayerNetworkInfo) => { | 206 | this.player.on('network-info', (_, data: PlayerNetworkInfo) => { |
207 | if (data.source !== 'p2p-media-loader' || isNaN(data.bandwidthEstimate)) return | 207 | if (data.source !== 'p2p-media-loader' || isNaN(data.bandwidthEstimate)) return |
208 | 208 | ||
209 | saveAverageBandwidth(data.bandwidthEstimate) | 209 | saveAverageBandwidth(data.bandwidthEstimate) |