interface AudioTrackLaneApi {
    onPlayheadCueEvent$: Observable<OmakaseVttCueEvent<AudioVttCue>>;
    onScrubberCueEvent$: Observable<OmakaseVttCueEvent<AudioVttCue>>;
    onVideoCueEvent$: Observable<OmakaseVttCueEvent<AudioVttCue>>;
    onVttFileLoaded$: Observable<AudioVttFile>;
    get vttFile(): undefined | T;
    set vttFile(vttFile: undefined | T): void;
    get vttUrl(): undefined | string;
    set vttUrl(vttUrl: undefined | string): void;
    loadVtt(
        vttUrl: string,
        options?: VttLoadOptions,
    ): Observable<undefined | AudioVttFile>;
}

Hierarchy (View Summary)

Implemented by

Properties

onPlayheadCueEvent$: Observable<OmakaseVttCueEvent<AudioVttCue>>

Fires on VTT cue entry/exit on playhead drag

onScrubberCueEvent$: Observable<OmakaseVttCueEvent<AudioVttCue>>

Fires on VTT cue entry/exit on scrubber move

onVideoCueEvent$: Observable<OmakaseVttCueEvent<AudioVttCue>>

Fires on VTT cue entry/exit on video time change

onVttFileLoaded$: Observable<AudioVttFile>

Fires when VTT file is loaded

Accessors

Methods

  • Loads data from VTT file

    Parameters

    • vttUrl: string
    • Optionaloptions: VttLoadOptions

    Returns Observable<undefined | AudioVttFile>