aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/webtorrent
diff options
context:
space:
mode:
authorFlorian CUNY <poslovitch@bentobox.world>2020-12-04 16:30:01 +0100
committerGitHub <noreply@github.com>2020-12-04 16:30:01 +0100
commit171528373e89560b3c396bc0d510d013e1f9c28e (patch)
tree9b52da739ddbab6fe0d85baa915dc4c1e8de1091 /client/src/assets/player/webtorrent
parentf8b530e0a523a0d9ff469ef716838374c395a360 (diff)
downloadPeerTube-171528373e89560b3c396bc0d510d013e1f9c28e.tar.gz
PeerTube-171528373e89560b3c396bc0d510d013e1f9c28e.tar.zst
PeerTube-171528373e89560b3c396bc0d510d013e1f9c28e.zip
add 'total downloaded' stats from server and peers in player (#3394)
Implements https://github.com/Chocobozzz/PeerTube/issues/3384 This will only work with HLS. The display for Webtorrent is left untouched. Co-authored-by: Rigel Kent <par@rigelk.eu>
Diffstat (limited to 'client/src/assets/player/webtorrent')
-rw-r--r--client/src/assets/player/webtorrent/webtorrent-plugin.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts
index 782c91cbd..96ba497a0 100644
--- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts
+++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts
@@ -487,6 +487,7 @@ class WebTorrentPlugin extends Plugin {
487 if (this.webtorrent.downloadSpeed !== 0) this.downloadSpeeds.push(this.webtorrent.downloadSpeed) 487 if (this.webtorrent.downloadSpeed !== 0) this.downloadSpeeds.push(this.webtorrent.downloadSpeed)
488 488
489 return this.player.trigger('p2pInfo', { 489 return this.player.trigger('p2pInfo', {
490 source: 'webtorrent',
490 http: { 491 http: {
491 downloadSpeed: 0, 492 downloadSpeed: 0,
492 uploadSpeed: 0, 493 uploadSpeed: 0,