interface MarkerLaneApi {
    onMarkerCreate$: Observable<MarkerCreateEvent>;
    onMarkerDelete$: Observable<MarkerDeleteEvent>;
    onMarkerFocus$: Observable<MarkerFocusEvent>;
    onMarkerInit$: Observable<MarkerInitEvent>;
    onMarkerUpdate$: Observable<MarkerUpdateEvent>;
    onPlayheadCueEvent$: Observable<OmakaseVttCueEvent<MarkerVttCue>>;
    onScrubberCueEvent$: Observable<OmakaseVttCueEvent<MarkerVttCue>>;
    onVideoCueEvent$: Observable<OmakaseVttCueEvent<MarkerVttCue>>;
    onVttFileLoaded$: Observable<MarkerVttFile>;
    get name(): string;
    vttFile: undefined | T;
    vttUrl: undefined | string;
    addMarker(marker: Marker): Marker;
    createMomentMarker(config: ConfigWithOptionalStyle<MomentMarkerConfig>): MomentMarker;
    createPeriodMarker(config: ConfigWithOptionalStyle<PeriodMarkerConfig>): PeriodMarker;
    focusMarker(id: string): void;
    getMarker(id: string): undefined | Marker;
    getMarkerInFocus(): undefined | Marker;
    getMarkers(): MarkerApi[];
    loadVtt(vttUrl: string, options?: VttLoadOptions): Observable<undefined | MarkerVttFile>;
    removeAllMarkers(): void;
    removeMarker(id: string): void;
    toggleMarker(id: string): void;
    updateMarker(id: string, data: Partial<MarkerApi>): void;
}

Hierarchy

Implemented by

Properties

onMarkerCreate$: Observable<MarkerCreateEvent>

Fires on marker create

onMarkerDelete$: Observable<MarkerDeleteEvent>

Fires on marker delete

onMarkerFocus$: Observable<MarkerFocusEvent>

Fires on marker focus

onMarkerInit$: Observable<MarkerInitEvent>

Fires on loading the initial list of markers

onMarkerUpdate$: Observable<MarkerUpdateEvent>

Fires on marker update

onPlayheadCueEvent$: Observable<OmakaseVttCueEvent<MarkerVttCue>>

Fires on VTT cue entry/exit on playhead drag

onScrubberCueEvent$: Observable<OmakaseVttCueEvent<MarkerVttCue>>

Fires on VTT cue entry/exit on scrubber move

onVideoCueEvent$: Observable<OmakaseVttCueEvent<MarkerVttCue>>

Fires on VTT cue entry/exit on video time change

onVttFileLoaded$: Observable<MarkerVttFile>

Fires when VTT file is loaded

Accessors

Methods

  • Updates Marker by ID

    Parameters

    • id: string

      Marker ID

    • data: Partial<MarkerApi>

    Returns void