Optional ReadonlyabortReadonlygetOptional ReadonlylookSeconds ahead of the playhead to keep buffered. Default 10s.
Optional ReadonlylookSeconds behind the playhead to keep buffered. Default 2s.
ReadonlyonInvoked with each batch of cues as soon as they are parsed. Called once
per HLS segment, or once for a direct .vtt document.
Optional ReadonlyonInvoked with the CSS body of any STYLE blocks parsed from a document.
Only called when a document actually declares styles.
Optional ReadonlyrequestOptional ReadonlyvariablesHLS EXT-X-DEFINE variables to make available for IMPORT and for
substitution of segment URIs when loading from an HLS media playlist.
Returns the current playback time (seconds on the presentation timeline). Used to fetch caption segments in a window around the playhead rather than draining the entire playlist up front.