From 171528373e89560b3c396bc0d510d013e1f9c28e Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Fri, 4 Dec 2020 16:30:01 +0100 Subject: 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 --- client/src/assets/player/webtorrent/webtorrent-plugin.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'client/src/assets/player/webtorrent') 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 { if (this.webtorrent.downloadSpeed !== 0) this.downloadSpeeds.push(this.webtorrent.downloadSpeed) return this.player.trigger('p2pInfo', { + source: 'webtorrent', http: { downloadSpeed: 0, uploadSpeed: 0, -- cgit v1.2.3