Home > hls.js > GapController

GapController class

Signature:

export default class GapController extends TaskLoop 

Extends: TaskLoop

Constructors

Constructor

Modifiers

Description

(constructor)(hls, fragmentTracker)

Constructs a new instance of the GapController class

Properties

Property

Modifiers

Type

Description

ended

number

hasBuffered

readonly

boolean

waiting

number

Methods

Method

Modifiers

Description

destroy()

poll(currentTime, lastCurrentTime)

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).

tick()