Interface OmakaseVttFile<T>

interface OmakaseVttFile<T extends OmakaseVttCue> {
    get cues(): T[];
    get extensionVersion(): undefined | V1_0;
    get hasCues(): boolean;
    findCue(time: number): undefined | T;
    findCues(startTime: number, endTime: undefined | number): T[];
}

Type Parameters

Hierarchy (View Summary)

Implemented by

Accessors

Methods

  • Parameters

    • time: number

    Returns undefined | T

    first cue that intersects given time frame

  • Parameters

    • startTime: number
    • endTime: undefined | number

    Returns T[]

    cues that intersect given time frame