Vinyl
    Preparing search index...

    Class ContentStreamImpl

    Any object that may be disposed.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    contentType: ContentType

    The content type for this stream. E.g. 'audio' or 'video'

    logPrefix: string

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

    Accessors

    • get "[toStringTag]"(): string

      Returns string

    • get bufferingEnded(): boolean

      True if the last segment has been appended.

      Returns boolean

    • get error(): null | Error

      The error, if in an error state.

      Returns null | Error

    Methods

    • Clears all fetched fragments and source buffers. Streaming will resume. This should be called if a change has been made where the user would expect an immediate change, for example, changing streaming quality from SD to HD.

      Returns void

    • Deactivates the content stream, deactivating sub-controllers.

      Returns void

    • Dispatches an event.

      Type Parameters

      Parameters

      • type: K

        The key of the event within EventMap

      • event: StreamingEventMap[K]

        If the passed event is read-only, then it may be re-used/cached. Otherwise, it should be a new event object every dispatch. If no target property is set on the event, the target will be set to this host.

      Returns void

    • Resets the track to recover from error states. Resets both the segment controller and buffering controller to clear failed segments and error conditions.

      Returns void