Vinyl
    Preparing search index...

    Class SegmentDataSlot

    A SegmentSlot is a holder for a segment buffer. It may be requested, cleared, and its status observed.

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    onStatusChange: null | (() => void)

    Called when the status has changed.

    Accessors

    • get status(): SegmentStatus

      This segment's request status.

      Returns SegmentStatus

    • set status(value: SegmentStatus): void

      Parameters

      Returns void

    Methods

    • Aborts the request if the status is currently SegmentStatus.PENDING, and clears the cached buffer. The status will go back to SegmentStatus.INACTIVE and the segment may be requested again in the future.

      Returns void

    • Clears this segment and removes its handler.

      Returns void

    • Begins the segment request now if it has not already been requested. The promise returned will settle after this slot's status has updated and onStatusChange callback invoked.

      Returns Promise<ArrayBuffer>