element-call icon indicating copy to clipboard operation
element-call copied to clipboard

Latency can increase to ~10 seconds

Open dbkr opened this issue 2 years ago • 6 comments

Steps to reproduce

Reports of latency on a call getting up to 5 or 10 seconds, at which point obviously the call is unusable. It apparently starts off okay and then gets worse. That's all we have currently. Perhaps we have some buffers that are way too large in livekit?

Outcome

What did you expect?

What happened instead?

Operating system

No response

Browser information

No response

URL for webapp

No response

Will you send logs?

No

dbkr avatar Sep 15 '23 08:09 dbkr

I have had this issue a few times, raising just in case you want someone who may be able replicate this

wrjlewis avatar Sep 20 '23 10:09 wrjlewis

I've noticed while debugging device issues that unplugging a device and falling back to a different one seems to increase latency significantly.

dbkr avatar Sep 28 '23 17:09 dbkr

Further to the above, the latency did jump up significantly when changing devices (maybe to ~500ms in some cases) but did recover again afterwards. The latency looked to be on the receiver side, looking at the graphs in WebRTC internals, I could see large spikes in the jitter buffer graphs when changing devices. This could imply the livekit server isn't quite doing timestamps correctly when a publisher stops sending packets, perhaps?

dbkr avatar Oct 04 '23 16:10 dbkr

presumably this is going to be a livekit bug? (which is ironic given rate control was the main reason to use a preexisting SFU...)

ara4n avatar Oct 16 '23 20:10 ara4n

I now keep getting this occasionally. I thought it was when I started using firefox but I'm now getting it on chrome, and the person I'm seeing delayed is on chrome too. The person who is delayed says his internet connection is bad, however that person's video is not delayed for anyone else in the call. This would suggest it's some kind of buffer edge case in Livekit perhaps?

dbkr avatar Jan 16 '24 16:01 dbkr

A friend of mine is also having this issue on chrome with a bad internet connection.

bblacher avatar Feb 03 '24 16:02 bblacher

closing due being stale for some time. Please reopen if the issue still occurs.

fkwp avatar Jan 23 '25 14:01 fkwp