Browse Source

Reduce latency jump amount

pull/1819/head
Gabe Kangas 4 years ago
parent
commit
0254afea71
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 6
      webroot/js/components/latencyCompensator.js

6
webroot/js/components/latencyCompensator.js

@ -76,6 +76,10 @@ class LatencyCompensator { @@ -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 { @@ -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,

Loading…
Cancel
Save