mirror of
https://github.com/owncast/owncast.git
synced 2024-10-24 21:45:59 +03:00
Reduce latency jump amount
This commit is contained in:
parent
c5cbb210c2
commit
0254afea71
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue