Skip to content

TextTrackCueList

Types

t

type t = WebAPI.WebVttTypes.textTrackCueList = private {
length: int,
}

Record fields

length
int

Returns the number of cues in the list. Read more on MDN

Values

getCueById

Returns the first text track cue (in text track cue order) with text track cue identifier id.

Returns null if none of the cues have the given identifier or if the argument is the empty string. Read more on MDN

let getCueById: (
WebAPI.WebVttTypes.textTrackCueList,
string,
) => Null.t<WebAPI.WebVttTypes.textTrackCue>

Parameters

string

Return type

Null.t<WebAPI.WebVttTypes.textTrackCue>