Skip to content

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

Reduce latency jump amount

Gabe Kangas1811f7f29f61
diff --git a/webroot/js/components/latencyCompensator.js b/webroot/js/components/latencyCompensator.js
index eead6d3550..87dc586f67 100644
--- a/webroot/js/components/latencyCompensator.js
+++ b/webroot/js/components/latencyCompensator.js
@@ -76,6 +76,10 @@ class LatencyCompensator {
return;
}
+ if (this.player.seeking()) {
+ return;
+ }
+
if (this.inTimeout) {
console.log('in timeout...');
return;
@@ -175,7 +179,7 @@ class LatencyCompensator {
latency > maxLatencyThreshold + MAX_JUMP_LATENCY
) {
const seekPosition =
- this.player.currentTime() + segment.duration * 2.4;
+ this.player.currentTime() + segment.duration * 2.0;
console.log(
'latency',
latency / 1000,