The clip API which can be used to clip the playback window of a source.

interface Clip {
    endTime: number;
    startTime: number;
    addEventListener<TType extends "change">(
        type: TType | readonly TType[],
        listener: EventListener<ClipEventMap[TType]>,
    ): void;
    removeEventListener<TType extends "change">(
        type: TType | readonly TType[],
        listener: EventListener<ClipEventMap[TType]>,
    ): void;
}

Hierarchy (View Summary)

Properties

endTime: number

The end time of the clip's window, in seconds.

startTime: number

The start time of the clip's window, in seconds.

Methods