From fd3c2e87051f5029cdec39d877b576a62f48e219 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 12 Aug 2022 16:41:29 +0200 Subject: Add playback metric endpoint sent to OTEL --- client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/assets/player/shared/webtorrent') diff --git a/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts index 9fd5f593e..fa3f48a9a 100644 --- a/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts +++ b/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts @@ -204,6 +204,8 @@ class WebTorrentPlugin extends Plugin { } this.updateVideoFile(newVideoFile, options) + + this.player.trigger('engineResolutionChange') } flushVideoFile (videoFile: VideoFile, destroyRenderer = true) { @@ -506,9 +508,7 @@ class WebTorrentPlugin extends Plugin { source: 'webtorrent', http: { downloadSpeed: 0, - uploadSpeed: 0, - downloaded: 0, - uploaded: 0 + downloaded: 0 }, p2p: { downloadSpeed: this.torrent.downloadSpeed, -- cgit v1.2.3