Skip to content

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

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

Gabe Kangasde6c52e4afc0
diff --git a/webroot/js/metrics/playback.js b/webroot/js/metrics/playback.js
index c08ac0f3bd..99de95b77b 100644
--- a/webroot/js/metrics/playback.js
+++ b/webroot/js/metrics/playback.js
@@ -181,6 +181,10 @@ class PlaybackMetrics {
}
async send() {
+ if (this.segmentDownloadTime.length === 0) {
+ return;
+ }
+
const errorCount = this.errors;
var data;