From a6b1d0ec94d99012a17dd32652ab41de369aa243 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 6 Apr 2022 22:14:49 -0700 Subject: [PATCH] Do not collect playback metrics when paused --- webroot/js/metrics/playback.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webroot/js/metrics/playback.js b/webroot/js/metrics/playback.js index da359a3fe..150030145 100644 --- a/webroot/js/metrics/playback.js +++ b/webroot/js/metrics/playback.js @@ -149,6 +149,11 @@ class PlaybackMetrics { return; } + // If we're paused then do nothing. + if (this.player.paused()) { + return; + } + const bandwidth = tech.vhs.systemBandwidth; this.trackBandwidth(bandwidth);