Browse Source

Do not collect playback metrics when paused

pull/1819/head
Gabe Kangas 3 years ago
parent
commit
a6b1d0ec94
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 5
      webroot/js/metrics/playback.js

5
webroot/js/metrics/playback.js

@ -149,6 +149,11 @@ class PlaybackMetrics {
return; return;
} }
// If we're paused then do nothing.
if (this.player.paused()) {
return;
}
const bandwidth = tech.vhs.systemBandwidth; const bandwidth = tech.vhs.systemBandwidth;
this.trackBandwidth(bandwidth); this.trackBandwidth(bandwidth);

Loading…
Cancel
Save