Files
SpotiFLAC-Mobile/lib/services/link/features
zarzet 702063d27a fix(link): follow the computer's audio when showing its lyrics on a phone
A phone showing what the paired computer plays restamped each player
state with the time it arrived, because the two clocks may run seconds
apart. The time the state spent on the way was lost, so the position,
and the lyrics with it, trailed the computer's audio by the network
delay, often a fraction of a second over Wi-Fi.

The phone now measures the computer's clock from its `GET state`
replies, stamped halfway through each round trip, keeping the sample
with the shortest round trip. Pushed states move onto the phone's clock
by that offset. A few pushes read the clock again until three samples
exist, then once a minute; reconnecting starts over. Before any sample,
or for a stamp over 5 s old, a state counts as read when it arrived.
2026-11-08 05:34:45 +07:00
..