Reduce latency jump amount
This commit is contained in:
parent
c5cbb210c2
commit
0254afea71
@ -76,6 +76,10 @@ class LatencyCompensator {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.player.seeking()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.inTimeout) {
|
if (this.inTimeout) {
|
||||||
console.log('in timeout...');
|
console.log('in timeout...');
|
||||||
return;
|
return;
|
||||||
@ -175,7 +179,7 @@ class LatencyCompensator {
|
|||||||
latency > maxLatencyThreshold + MAX_JUMP_LATENCY
|
latency > maxLatencyThreshold + MAX_JUMP_LATENCY
|
||||||
) {
|
) {
|
||||||
const seekPosition =
|
const seekPosition =
|
||||||
this.player.currentTime() + segment.duration * 2.4;
|
this.player.currentTime() + segment.duration * 2.0;
|
||||||
console.log(
|
console.log(
|
||||||
'latency',
|
'latency',
|
||||||
latency / 1000,
|
latency / 1000,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user