Vinyl
    Preparing search index...

    Class SourceBufferControllerImpl

    The SourceBufferController manages a single source buffer. It provides queued commands for appending and clearing data.

    Implements

    Index

    Constructors

    Properties

    contentType: ContentType
    logPrefix: string

    A string prefix for all log statements made by this target.

    Accessors

    • get "[toStringTag]"(): string

      Returns string

    Methods

    • Aborts the current segment and resets the segment parser.

      Returns void

    • Enqueues appending a media segment. An appendInit call must precede appending media segments. A promise is returned that will resolve when the task is complete.

      Parameters

      • data: ArrayBuffer

      Returns Promise<void>

    • Enqueues appending an initialization segment, reinitializing the decoder.

      Parameters

      • data: ArrayBuffer
      • mimeType: string

      Returns Promise<void>

    • Aborts any pending buffers and clears all buffered ranges.

      Returns Promise<void>

    • Aborts any active buffering and disposes the backed SourceBuffer.

      Returns void

    • Enqueues an operation. Guaranteed to be invoked when the source buffer is not updating.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<T>

    • Returns true if an operation is currently running.

      Returns boolean

    • Removes media segments within a specific time range from the SourceBuffer.

      Parameters

      • startTime: number
      • endTime: number

      Returns Promise<void>

    • Sets the append window on the backing source buffer. Keyframes outside this range will be discarded.

      Parameters

      • OptionalappendWindowStart: number
      • OptionalappendWindowEnd: number

      Returns Promise<void>

    • Sets the timestampOffset on the backing source buffer.

      Parameters

      • timestampOffset: number

      Returns Promise<void>