Do not make metrics api call if there is no data to send

This commit is contained in:
Gabe Kangas 2022-04-07 14:56:38 -07:00
parent d4cbf07055
commit f8181fd036
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA

View file

@ -181,6 +181,10 @@ class PlaybackMetrics {
}
async send() {
if (this.segmentDownloadTime.length === 0) {
return;
}
const errorCount = this.errors;
var data;