Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Do not collect playback metrics when paused

Gabe Kangas8788a853e69e
diff --git a/webroot/js/metrics/playback.js b/webroot/js/metrics/playback.js
index da359a3fe7..1500301457 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);