Class: GapSkipper

GapSkipper

new GapSkipper()

The gap skipper object handles all scenarios where the player runs into the end of a buffered region and there is a buffered region ahead. It then handles the skipping behavior by setting a timer to the size (in time) of the gap. This gives the hls segment fetcher time to close the gap and resume playing before the timer is triggered and the gap skipper simply seeks over the gap as a last resort to resume playback.
Source: