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

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

Hierarchy (view full)

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