Track buffering events as errors differently in playback metrics

This commit is contained in:
Gabe Kangas
2022-03-27 14:45:21 -07:00
parent 78b0f7addc
commit 9f6151359f
2 changed files with 18 additions and 4 deletions

View File

@@ -238,7 +238,7 @@ class OwncastPlayer {
const latency = now - segmentTime;
this.playbackMetrics.trackLatency(latency);
} catch (err) {
console.warn(err);
// console.warn(err);
}
}
@@ -261,12 +261,12 @@ class OwncastPlayer {
}
handleWaiting(e) {
// this.playbackMetrics.incrementErrorCount(1);
this.playbackMetrics.isBuffering = true;
this.playbackMetrics.incrementErrorCount(1);
this.playbackMetrics.setIsBuffering(true);
}
handleNoLongerBuffering() {
this.playbackMetrics.isBuffering = false;
this.playbackMetrics.setIsBuffering(false);
}
log(message) {