Vinyl
    Preparing search index...

    Class DashSegmentProviderImpl

    Provides an abstraction to resolving media segments. Readonly

    Hierarchy (View Summary)

    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

    • Dispatches an event.

      Type Parameters

      • K extends "change"

      Parameters

      • type: K

        The key of the event within EventMap

      • event: SegmentProviderEventMap[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

    • Returns void

    • The duration of the media, in seconds. Returns null if duration cannot be determined.

      Returns Promise<null | number>

    • The minimum duration of the buffer that a client should maintain for uninterrupted playback.

      Returns Promise<number>

    • Returns true if the event host has any listeners for the given type.

      Parameters

      • type: "change"

      Returns boolean