diff options
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) |