aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/shared/web-video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-21 11:42:52 +0200
committerChocobozzz <me@florianbigard.com>2023-07-21 11:42:52 +0200
commitc6867725fb8e3dfbc2018a37ed5a963103587cb6 (patch)
tree92e00e551c95553c6090e26a7502593e72bdcfd7 /client/src/assets/player/shared/web-video
parentb63c607b92fd3ec62e370b73e398062bcf317738 (diff)
downloadPeerTube-c6867725fb8e3dfbc2018a37ed5a963103587cb6.tar.gz
PeerTube-c6867725fb8e3dfbc2018a37ed5a963103587cb6.tar.zst
PeerTube-c6867725fb8e3dfbc2018a37ed5a963103587cb6.zip
Add p2p info to metrics
Diffstat (limited to 'client/src/assets/player/shared/web-video')
-rw-r--r--client/src/assets/player/shared/web-video/web-video-plugin.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/assets/player/shared/web-video/web-video-plugin.ts b/client/src/assets/player/shared/web-video/web-video-plugin.ts
index 930b5045a..d09b5a724 100644
--- a/client/src/assets/player/shared/web-video/web-video-plugin.ts
+++ b/client/src/assets/player/shared/web-video/web-video-plugin.ts
@@ -175,7 +175,7 @@ class WebVideoPlugin extends Plugin {
175 175
176 private setupNetworkInfoInterval () { 176 private setupNetworkInfoInterval () {
177 this.networkInfoInterval = setInterval(() => { 177 this.networkInfoInterval = setInterval(() => {
178 return this.player.trigger('http-info', { 178 return this.player.trigger('network-info', {
179 source: 'web-video', 179 source: 'web-video',
180 http: { 180 http: {
181 downloaded: this.player.bufferedPercent() * this.currentVideoFile.size 181 downloaded: this.player.bufferedPercent() * this.currentVideoFile.size