Vinyl
    Preparing search index...

    Class FixedPlaybackQuality

    FixedPlaybackQuality has a singular quality for selection.

    streamingQuality will always be the fixed quality.

    bufferingQuality will be the fixed quality when active, otherwise null.

    playbackQuality will be the fixed quality when active and data is buffered, otherwise null.

    Hierarchy (View Summary)

    • EventHostImpl<
          Pick<
              TrackEventMap,
              | "streamingQualityChange"
              | "bufferingQualityChange"
              | "playbackQualityChange",
          >,
      >
      • FixedPlaybackQuality
    Index

    Constructors

    Properties

    logPrefix: string

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

    Accessors

    • get "[toStringTag]"(): string

      Returns string

    • get active(): boolean

      Returns boolean

    • get contentTypes(): Readonly<Omit<Set<ContentType>, "clear" | "delete" | "add">>

      Returns Readonly<Omit<Set<ContentType>, "clear" | "delete" | "add">>

    Methods

    • Returns void

    • Returns void

    • Dispatches an event.

      Type Parameters

      • K extends "playbackQualityChange" | "streamingQualityChange" | "bufferingQualityChange"

      Parameters

      • type: K

        The key of the event within EventMap

      • event: Pick<
            StreamingEventMap,
            | "playbackQualityChange"
            | "streamingQualityChange"
            | "bufferingQualityChange",
        >[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

    • Returns true if the event host has any listeners.

      Returns boolean

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

      Parameters

      • type: "playbackQualityChange" | "streamingQualityChange" | "bufferingQualityChange"

      Returns boolean

    • Adds an event handler for the given typed event.

      Type Parameters

      • K extends "playbackQualityChange" | "streamingQualityChange" | "bufferingQualityChange"

      Parameters

      • type: K

        The key representing the event type to listen for.

      • handler: EventHandler<
            Pick<
                StreamingEventMap,
                | "playbackQualityChange"
                | "streamingQualityChange"
                | "bufferingQualityChange",
            >[K],
        >

        A callback to invoke when the event with the given type is dispatched.

      • Optionaloptions: SignalOptions

        Options for changing listening behavior.

      Returns Unsubscribe

      Returns a method, when invoked, removes the handler.