mirror of
https://github.com/livekit/livekit.git
synced 2026-04-25 17:42:07 +00:00
From logs, can see when reference layer is out of order, it is out of order by a small amount most of the time (saw a maximum of 5 ms in a sampling of logs). When using arrival time in those case, some times the offset comes out to 10 ms or so. In most of the cases, the time based diff is a lot higher (by several ms). Just use the default of +1 diff on switch layer in case of out-of-order time stamp. That will allow playback to move forward and keep the timing close to actual frame time.