Synchronize extension with the video stream

Thanks @BarryCarlyon. Do you have any information about the algorithm they use to compute this “hls Latency Broadcaster” variable? I am trying to reverse engineer this thing, with no success. My guess it compares the time of stream start with the current date, and timestamp of the last video chunk… but I can’t confirm that - going through minified JS code is a nightmare.