Home > hls.js > GapController > poll

GapController.poll() method

Checks if the playhead is stuck within a gap, and if so, attempts to free it. A gap is an unbuffered range between two buffered ranges (or the start and the first buffered range).

Signature:

poll(currentTime: number, lastCurrentTime: number): void;

Parameters

Parameter

Type

Description

currentTime

number

lastCurrentTime

number

Previously read playhead position

Returns:

void