Do not collect playback metrics when paused

This commit is contained in:
Gabe Kangas 2022-04-06 22:14:49 -07:00
parent 748ada13d3
commit a6b1d0ec94
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

@ -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);